Last active
January 15, 2020 08:10
-
-
Save iamcryptoki/7c821217dd36ebd3428ff88bb37c1999 to your computer and use it in GitHub Desktop.
Kubernetes: Copy secret data between namespaces.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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