Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hayorov/b922cefe5db0c23a5f15fb0050f89300 to your computer and use it in GitHub Desktop.
Save hayorov/b922cefe5db0c23a5f15fb0050f89300 to your computer and use it in GitHub Desktop.
Copy kubernetes secrets between namespaces
kubectl get 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