Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save as/84f13bba27886c7f1d58f79caf5f08ce to your computer and use it in GitHub Desktop.
Save as/84f13bba27886c7f1d58f79caf5f08ce to your computer and use it in GitHub Desktop.
Copying kubernetes resources accross namespaces
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