Created
September 1, 2017 11:41
-
-
Save andor-pierdelacabeza/61387fa99165a156c4642dde4c6c7723 to your computer and use it in GitHub Desktop.
migrate k8s secret from one namespace to other
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 --namespace staging get secret credentials -o json|jq '.metadata.namespace = "production"'|kubectl create -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment