Improvement: Managing Secret using kubectl

This commit is contained in:
Shubham Kuchhal
2021-03-19 12:41:19 +05:30
parent 25c236728e
commit 41dff008af
@@ -125,10 +125,10 @@ kubectl get secret db-user-pass -o jsonpath='{.data}'
The output is similar to: The output is similar to:
```json ```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 ```shell
echo 'MWYyZDFlMmU2N2Rm' | base64 --decode echo 'MWYyZDFlMmU2N2Rm' | base64 --decode