-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(installer): add oidc scripts (#2194)
- Loading branch information
Lis
authored
Dec 22, 2022
1 parent
4cfa235
commit 711c110
Showing
4 changed files
with
646 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# OIDC config and rollback scripts | ||
|
||
## How to use oidc.sh script | ||
`oidc.sh` script use to config the OIDC login. | ||
When the first tile use the `oidc.sh`.You should fill in the configuration file `oidc.conf`then execute the `oidc.sh`with the `oidc.conf`: | ||
``` | ||
chmod +x oidc.sh | ||
./oidc.sh oidc.conf | ||
``` | ||
After that,it will store the `oidc.conf` in configmap, you can check: | ||
``` | ||
kubectl get cm -n tke oidc-config | ||
``` | ||
Except for the first time,you can execute the script without the script: | ||
``` | ||
./oidc.sh | ||
``` | ||
## How to use rollback.sh script | ||
`rollback.sh` use to rollback OIDC login, after rollback you can use tkeanywhere to login. | ||
``` | ||
chmod +x rollback.sh | ||
./rollback.sh | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ca_crt="/root/oidc/ca.crt" | ||
secret_id="123456" | ||
secret_key="123456" | ||
endpoint="oidc.cn" | ||
master_id="123456" | ||
username="oidc" | ||
issuer_url="https://oidc.cn/iamapp/api/v1/OIDC" | ||
hostnames="oidc.cn,iam-api.oidc.cn" | ||
tke_domain_name="tke.domain.name" |
Oops, something went wrong.