Skip to content

Commit f2dc4d2

Browse files
authored
Remove Base64'ing of file contents
Updated example of reading secret values from a file so that it doesn't base64 the contents in the file before kubectl reads it.
1 parent 45fc485 commit f2dc4d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh-cn/docs/tasks/configmap-secret/managing-secret-using-kubectl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ characters.
7676
### 使用源文件
7777

7878
<!--
79-
1. Store the credentials in files with the values encoded in base64:
79+
1. Store the credentials in files:
8080
-->
81-
1. 对凭证的取值作 base64 编码后保存到文件中
81+
1. 将凭据保存到文件
8282

8383
```shell
84-
echo -n 'admin' | base64 > ./username.txt
85-
echo -n 'S!B\*d$zDsb=' | base64 > ./password.txt
84+
echo -n 'admin' > ./username.txt
85+
echo -n 'S!B\*d$zDsb=' > ./password.txt
8686
```
8787

8888
<!--

0 commit comments

Comments
 (0)