Print a decoded secret value locally.
Section: ConfigMaps and Secrets
Get decoded secret key
bash
bash
kubectl get secret app-secret -n payments -o jsonpath='{.data.API_KEY}' | base64 --decodeExplanation
Print a decoded secret value locally.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing ConfigMaps and Secrets