Forked from danrigsby/gist:8346b842d1446628de5223b600668dca
Created
January 4, 2019 03:31
-
-
Save hayorov/b922cefe5db0c23a5f15fb0050f89300 to your computer and use it in GitHub Desktop.
Copy kubernetes secrets between namespaces
This file contains hidden or 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 --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment