Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshisa/627c0c57bb87840d59c6c63760079fa0 to your computer and use it in GitHub Desktop.
Save joshisa/627c0c57bb87840d59c6c63760079fa0 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