Skip to content

Commit

Permalink
apply suggestions for update addon using yaml (#671)
Browse files Browse the repository at this point in the history
apply suggestions from code review for update addon using yaml (#671)

Signed-off-by: cclhsu <clark.hsu@suse.com>
  • Loading branch information
cclhsu committed Feb 21, 2020
1 parent 0bcfcbd commit dc3efc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build/
.directory
.DS_Store
.DS_Store?
.vscode/
15 changes: 5 additions & 10 deletions adoc/admin-security-rbac.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ kubectl create rolebinding admin --clusterrole=admin --user=<USER_1> --user=<USE
Administrators can update the authentication connector settings after {productname}
deployment as follows:

. Run the following `kubectl` command to access Dex ConfigMap:
+
----
kubectl --namespace=kube-system edit configmap oidc-dex-config
----
. Edit and save Dex addon YAML in `~/clusters/<CLUSTER_NAME>/addons/dex/dex.yml`
+
. Adapt ConfigMap by adding LDAP configuration to the connector section.
For detailed configuration of the LDAP connector, refer to Dex documentation:
Expand Down Expand Up @@ -140,15 +136,14 @@ Besides the LDAP connector you can also set up other connectors.
For additional connectors, refer to the available connector configurations in the Dex repository:
https://github.com/dexidp/dex/tree/v2.16.0/Documentation/connectors.
+
. Save and exit Dex ConfigMap by typing `:wq` in the terminal.
+
. Restart Dex and Gangway by running:
. Apply changes:
+
----
kubectl --namespace=kube-system delete pod -l app=oidc-dex
kubectl --namespace=kube-system delete pod -l app=oidc-gangway
kubectl apply -f ~/clusters/<CLUSTER_NAME>/addons/dex/dex.yml
----

NOTE: Before any add-on upgrade, please backup any runtime configuration changes, then restore the modification back after upgraded. It is known limitation.

[[_sec.admin.security.rbac.apply]]
=== User Access

Expand Down

0 comments on commit dc3efc9

Please sign in to comment.