Skip to content

Instantly share code, notes, and snippets.

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