I have set the namespace to current context like below
kubectl config set-context --current --namespace=ns1
I tried to unset the namespace from current context , but it didn't work.
I am looking for help, Could you please share me the command to unset the namespace to default .
kubectl config set-context --current --namespace=default
or
kubectl config unset contexts.name-of-your-current-context.namespace
Both will result in usage of the default namespace for the current context.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With