Skip to content

Instantly share code, notes, and snippets.

@akhy
Created September 22, 2023 01:57
Show Gist options
  • Save akhy/c9aaaf7ba49a6dd9acdafde52962c686 to your computer and use it in GitHub Desktop.
Save akhy/c9aaaf7ba49a6dd9acdafde52962c686 to your computer and use it in GitHub Desktop.
Decode k8s secret using JQ
kubectl -n $namespace get secret $name -o json | jq -r '.data | map_values(@base64d)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment