Merge pull request #23652 from feranwq/patch-3

update secret.md fix typo
pull/23658/head
Kubernetes Prow Robot 2020-09-02 05:33:07 -07:00 committed by GitHub
commit e9e90bf711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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=` ,则应通过以下方式执行命令: