[zh] Sync tasks pages for configmap-secret\managing-secret-using-kubectl.md

* Sync with english version in 'Improvement: Managing Secret using kubectl (#27136)'

Signed-off-by: ydFu <ader.ydfu@gmail.com>
This commit is contained in:
ydFu 2021-03-20 16:13:03 +08:00
parent c3098c0d01
commit c5d6010935
1 changed files with 5 additions and 3 deletions

View File

@ -173,11 +173,13 @@ kubectl get secret db-user-pass -o jsonpath='{.data}'
输出类似于: 输出类似于:
```json ```json
{"password.txt":"MWYyZDFlMmU2N2Rm","username.txt":"YWRtaW4="} {"password":"MWYyZDFlMmU2N2Rm","username":"YWRtaW4="}
``` ```
<!-- Now you can decode the `password.txt` data: --> <!--
现在你可以解码 `password.txt` 的数据: Now you can decode the `password` data:
-->
现在你可以解码 `password` 的数据:
```shell ```shell
echo 'MWYyZDFlMmU2N2Rm' | base64 --decode echo 'MWYyZDFlMmU2N2Rm' | base64 --decode