Forked from simonswine/copy-k8s-resources-across-namespaces.sh
Created
August 23, 2018 02:27
-
-
Save eshleebien/dfa51bc77655a51d3df970671b7f1ba4 to your computer and use it in GitHub Desktop.
Copying kubernetes resources accross 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 rs,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