Improvement: Managing Secret using kubectl

This commit is contained in:
Shubham Kuchhal 2021-03-19 12:41:19 +05:30
parent 25c236728e
commit 41dff008af
1 changed files with 2 additions and 2 deletions

View File

@ -125,10 +125,10 @@ kubectl get secret db-user-pass -o jsonpath='{.data}'
The output is similar to:
```json
{"password.txt":"MWYyZDFlMmU2N2Rm","username.txt":"YWRtaW4="}
{"password":"MWYyZDFlMmU2N2Rm","username":"YWRtaW4="}
```
Now you can decode the `password.txt` data:
Now you can decode the `password` data:
```shell
echo 'MWYyZDFlMmU2N2Rm' | base64 --decode