kubectl get secret db-pass -o yaml

Category: Kubernetes & Containers

kubectl get secret db-pass -o yaml

Show a secret's encoded values

Prints the secret object with its values base64-encoded, not plain text. Decode a value with echo <value> | base64 -d. Prefer tools like kubectl create secret over committing secrets to git.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.