Skip to content

Instantly share code, notes, and snippets.

@liejuntao001
Last active June 20, 2019 22:52
Show Gist options
  • Save liejuntao001/7a93863622e68d9b2a252b841038dc86 to your computer and use it in GitHub Desktop.
Save liejuntao001/7a93863622e68d9b2a252b841038dc86 to your computer and use it in GitHub Desktop.
# copy secret
kubectl get secret gitlab-registry --namespace=revsys-com --export -o yaml |\
kubectl apply --namespace=devspectrum-dev -f -
# modify configmap
kubectl create configmap foo --from-file foo.properties -o yaml --dry-run | kubectl replace -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment