Cluster information:
Server version: v1.30.0
Client version: v1.29.3
Host OS: Ubuntu 22.04
CNI and version:
CRI and version:
Using KIND
I am using the default cluster kind-kind which is created when we use the command
kind create cluster
Now there are 2 config files
- ${HOME}/.kube/config
- /root/.kube/config
then when i run the following command
sudo kubectl config set-context my-context --namespace=mystuff
it changes the ${HOME}/.kube/config file
But when I run
sudo kubectl config delete-context my-context
I get the following error
error: cannot delete context my-context, not in /root/.kube/config
Why is it happening?