Merge pull request #23652 from feranwq/patch-3

update secret.md fix typo
This commit is contained in:
Kubernetes Prow Robot
2020-09-02 05:33:07 -07:00
committed by GitHub
@@ -166,7 +166,7 @@ kubectl create secret generic dev-db-secret \
You do not need to escape special characters in passwords from files (`--from-file`).
-->
{{< note >}}
特殊字符(例如 `$``*``*``=``!`)可能会被你的
特殊字符(例如 `$``\``*``=``!`)可能会被你的
[Shell](https://en.wikipedia.org/wiki/Shell_(computing)) 解析,因此需要转义。
在大多数 Shell 中,对密码进行转义的最简单方式是使用单引号(`'`)将其扩起来。
例如,如果您的实际密码是 `S!B\*d$zDsb=` ,则应通过以下方式执行命令: