hardkubectl

Extract and decode a specific key from a Kubernetes secret

command

kubectl get secret SECRET_NAME -o jsonpath='{.data.KEY}' | base64 --decode

also accepted

kubectl get secret SECRET_NAME -o jsonpath

Test your recall — not just your reading.

Practice with interactive quiz →