Skip to content

Instantly share code, notes, and snippets.

@locona
Created July 9, 2018 03:46
Show Gist options
  • Select an option

  • Save locona/da20583adf501a02bcc73c146a7c10b3 to your computer and use it in GitHub Desktop.

Select an option

Save locona/da20583adf501a02bcc73c146a7c10b3 to your computer and use it in GitHub Desktop.
kubectl copy to different namespace
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