Created
July 9, 2018 03:46
-
-
Save locona/da20583adf501a02bcc73c146a7c10b3 to your computer and use it in GitHub Desktop.
kubectl copy to different namespace
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