Skip to content

Commit

Permalink
add secret example
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriyBg committed Oct 11, 2023
1 parent 61d704c commit 9429e5f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/modules/ROOT/pages/management-center-ldap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,23 @@ Bellow is the example configuration for the LDAP Security Provider:
----
include::ROOT:example$/management-center-ldap.yaml[]
----

And the exmaple of how to create a `Secret` for the LDAP credentials:

[source,shell]
----
$ kubectl create secret generic ldap-credentianls --from-literal=username="cn=admin,dc=example,dc=org" --from-literal=password="adminpassword"
$ kubectl get secret ldap-credentianls -o=yaml
apiVersion: v1
data:
password: YWRtaW5wYXNzd29yZA==
username: Y249YWRtaW4sZGM9ZXhhbXBsZSxkYz1vcmc=
kind: Secret
metadata:
creationTimestamp: "2023-10-11T10:51:37Z"
name: ldap-cred
namespace: default
resourceVersion: "59391"
uid: 299e5d42-4c72-4877-9a99-c6ffa3c68d07
type: Opaque
----

0 comments on commit 9429e5f

Please sign in to comment.