Skip to content

Instantly share code, notes, and snippets.

@iamcryptoki
Last active January 15, 2020 08:10
Show Gist options
  • Select an option

  • Save iamcryptoki/7c821217dd36ebd3428ff88bb37c1999 to your computer and use it in GitHub Desktop.

Select an option

Save iamcryptoki/7c821217dd36ebd3428ff88bb37c1999 to your computer and use it in GitHub Desktop.
Kubernetes: Copy secret data between namespaces.
$ kubectl get secret <SECRET_NAME> --namespace=<NAMESPACE> --export -o yaml | \
kubectl apply --namespace=<NEW_NAMESPACE> -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment