kubectl 1.37 · Config and secrets

Read a secret value

Decode one key of a Secret.

kubectl get secret db -o jsonpath='{.data.password}' | base64 -d

Caution: This prints the secret in your terminal.

Official kubectl 1.37 documentation

More config and secrets commands

All config and secrets commands · kubectl 1.37 cheatsheet

Was this page helpful?