Skip to content

Instantly share code, notes, and snippets.

@xsqian
Created August 15, 2023 21:37
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 xsqian/cdcef2d2b7767fb5c67170e197168289 to your computer and use it in GitHub Desktop.
Save xsqian/cdcef2d2b7767fb5c67170e197168289 to your computer and use it in GitHub Desktop.
how to set the default namespace
kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment