Created
March 31, 2021 06:29
-
-
Save patlachance/fb850a35867f3aca9682b8c1d4303a51 to your computer and use it in GitHub Desktop.
Kubernetes cheat sheets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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