From 367afa62a431945529ad404dd41b84d68a863cb0 Mon Sep 17 00:00:00 2001 From: clicklog Date: Sun, 5 May 2019 08:59:37 +0900 Subject: [PATCH] Fix password example for kubectl create secret (#14142) Add extra '\' to properly escape '\' for --from-literal example. --- content/en/docs/concepts/configuration/secret.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/configuration/secret.md b/content/en/docs/concepts/configuration/secret.md index bc61efb1f8..cff8363f08 100644 --- a/content/en/docs/concepts/configuration/secret.md +++ b/content/en/docs/concepts/configuration/secret.md @@ -78,7 +78,7 @@ secret "db-user-pass" created {{< note >}} Special characters such as `$`, `\*`, and `!` require escaping. If the password you are using has special characters, you need to escape them using the `\\` character. For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way: - kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password=S\\!B\\\*d\\$zDsb + kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password=S\\!B\\\\*d\\$zDsb You do not need to escape special characters in passwords from files (`--from-file`). {{< /note >}}