ZhangZhihui's Blog  
scnzzh@zubt1:~$ kubectl get secret --namespace default my-mysqlrelease -o jsonpath="{.data.mysql-root-password}"
TXlOZXZ2UGE1NXcwcmQ=scnzzh@zubt1:~$ kubectl get secret --namespace default my-mysqlrelease -o jsonpath="{.data.mysql-root-password}" | base64 --decode
MyNevvPa55w0rdscnzzh@zubt1:~$

 

For base64 encode, see https://www.cnblogs.com/zhangzhihui/p/11882341.html .

posted on 2021-01-29 11:03  ZhangZhihuiAAA  阅读(310)  评论(0编辑  收藏  举报