Skip to content

Instantly share code, notes, and snippets.

@xiaomi7732
Last active October 25, 2022 03:40
Show Gist options
  • Select an option

  • Save xiaomi7732/2dec34890817d9f1283d65260558878e to your computer and use it in GitHub Desktop.

Select an option

Save xiaomi7732/2dec34890817d9f1283d65260558878e to your computer and use it in GitHub Desktop.
Set default namespace for kubectl

Set default namespace for kubectl

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