Skip to content

Instantly share code, notes, and snippets.

@duskvirkus
Last active December 1, 2025 17:53
Show Gist options
  • Select an option

  • Save duskvirkus/f512c0814779370d17fb4a99278ce2c4 to your computer and use it in GitHub Desktop.

Select an option

Save duskvirkus/f512c0814779370d17fb4a99278ce2c4 to your computer and use it in GitHub Desktop.
Decode a secret kubectl
kubectl get secret secret_name -n namespace -o json | jq '.data | map_values(@base64d)'


kubectl get secret secret_name -n namespace --template={{.data.key}} | base64 --decode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment