ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.66k stars 1.26k forks source link

error: open /home/myuser/.kube/config: permission denied #414

Open eliassal opened 9 months ago

eliassal commented 9 months ago

Hi I followed instructions and setup ctx and ns on a ubuntu node. When I run

kubectl ns it lists all namespaces, however, when I run kubectl ns yellow I get a permissions error as follows

error: open /home/myuser/.kube/config: permission denied

In spite of the fact that I have done the setup while I am logged with myuser.Any idea how this can be fixed?

Mano811 commented 5 months ago

Hi,

Try following the steps below to see if they resolve your issues:

Let me know if these steps help! If you need further assistance, feel free to ask.