Forked from simonswine/copy-k8s-resources-across-namespaces.sh
Last active
August 10, 2017 14:41
-
-
Save sunsided/4a55b960d8c0ba82f631f9334191ab65 to your computer and use it in GitHub Desktop.
Copying kubernetes resources accross namespaces
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 secret-name -o json --namespace old | jq '.metadata.namespace = "new"' | kubectl create -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment