Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lagartoflojo/d4dce60e4aa59d912d60a6f75b08f036 to your computer and use it in GitHub Desktop.
Save lagartoflojo/d4dce60e4aa59d912d60a6f75b08f036 to your computer and use it in GitHub Desktop.
Copying kubernetes resources accross namespaces
kubectl get rs,secrets -o json --namespace <OLD_NAMESPACE> | jq '.items[].metadata.namespace = "<NEW_NAMESPACE>"' | kubectl create -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment