Skip to content

Instantly share code, notes, and snippets.

@nurlanf
Last active September 13, 2020 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurlanf/9bf6d502b455bc1a218e932cb0145248 to your computer and use it in GitHub Desktop.
Save nurlanf/9bf6d502b455bc1a218e932cb0145248 to your computer and use it in GitHub Desktop.
Kubernetes tips
oldns=default
newns=somenamespace
secret=mysecret
kubectl get secret $secret --namespace=$oldns --export -o yaml | kubectl apply --namespace=$newns -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment