Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wslaghekke/f91e815c5abcf74378896132b81f8e05 to your computer and use it in GitHub Desktop.
Save wslaghekke/f91e815c5abcf74378896132b81f8e05 to your computer and use it in GitHub Desktop.
Copying kubernetes resources accross namespaces
kubectl get configmap,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