hardkubectl
Extract and decode a specific key from a Kubernetes secret
command
kubectl get secret SECRET_NAME -o jsonpath='{.data.KEY}' | base64 --decodealso accepted
kubectl get secret SECRET_NAME -o jsonpathcommand
kubectl get secret SECRET_NAME -o jsonpath='{.data.KEY}' | base64 --decodealso accepted
kubectl get secret SECRET_NAME -o jsonpathPart of the Kubernetes CLI (kubectl) — ConfigMaps & Secrets category.
| Flag | Purpose |
|---|---|
-o | Boolean flag |
--decode | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →