kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace:
Last active
October 25, 2022 03:40
-
-
Save xiaomi7732/2dec34890817d9f1283d65260558878e to your computer and use it in GitHub Desktop.
Set default namespace for kubectl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment