Improvement: Managing Secret using kubectl
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user