Skip to content

Commit d85e3af

Browse files
review feedback changes
1 parent 850677e commit d85e3af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/operate/kubernetes/security/manage-rec-credentials.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ curl -k --request POST \
6868
kubectl create secret generic <cluster_secret_name> \
6969
--save-config \
7070
--dry-run=client \
71-
--from-literal=username=<username> \
72-
--from-literal=password=<password> \
71+
--from-literal=username=<current-username> \
72+
--from-literal=password=<new-password> \
7373
-o yaml | \
74-
kubectl apply -f
74+
kubectl apply -f -
7575
```
7676

7777
4. Wait five minutes for all the components to read the new password from the updated secret. If you proceed to the next step too soon, the account could get locked.
@@ -111,10 +111,10 @@ curl -k --request DELETE \
111111
kubectl create secret generic <cluster_secret_name> \
112112
--save-config \
113113
--dry-run=client \
114-
--from-literal=username=<username> \
115-
--from-literal=password=<password> \
114+
--from-literal=username=<new-username> \
115+
--from-literal=password=<new-password> \
116116
-o yaml | \
117-
kubectl apply -f
117+
kubectl apply -f -
118118
```
119119

120120
5. Wait five minutes for all the components to read the new password from the updated secret. If you proceed to the next step too soon, the account could get locked.

0 commit comments

Comments
 (0)