Skip to content

Instantly share code, notes, and snippets.

@patlachance
Created March 31, 2021 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patlachance/fb850a35867f3aca9682b8c1d4303a51 to your computer and use it in GitHub Desktop.
Save patlachance/fb850a35867f3aca9682b8c1d4303a51 to your computer and use it in GitHub Desktop.
Kubernetes cheat sheets
# show secrets
# from https://blog.zwindler.fr/2020/01/20/kubectl-tips-and-tricks-n2/
kubectl get secret name-of-secret -o go-template='
{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment