Created
August 3, 2022 02:42
-
-
Save bfolkens/77a5e3788c847b5df4bdf463d1b57eaf to your computer and use it in GitHub Desktop.
Backup kubernetes cluster secrets
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
kubectl get secrets -o json | \ | |
jq -r '.items[].metadata.name' | \ | |
while read i; do kubectl get secret $i -o json > $i.json; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment