New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solution message for file permission for .kube/config
#5714
Comments
I am curious can you acutally read your kubeconfig file ?
|
Output of
Output of
|
@Matt-Gleich thanks for getting back to me ! I am curious do you still have this issue with the latest version ? and also do you happen to be running another application that is is openinng/writing to kbue config at the same time ? |
@medyagh
I asked in the #minikube channel in the Kubernetes Slack Channel and got told to run the following command:
This ended up fixing it although it runs in hyperkit instead of virtualbox |
Could this error message have a message telling the user to run this command? |
@Matt-Gleich that is an excellent suggestion ! this should be an easy fix ! I would be happy to review any PR that add that solution message to the error. anyone picking up this issue, mind that this should be only for Linux and Mac platofrms and not windows. |
.kube/config
.kube/config
.kube/config
.kube/config
.kube/config
@medyagh |
Hey @Matt-Gleich looks like the I would probably update writeToFile to check if the user has permissions to write to the file. If not, then return an error suggesting the user runs the |
For anyone with this issue, this fixed it for me:
The command that I stated before didn't work for me when this broke again. |
I have to run |
Fixed in v1.6.2:
It's worth noting that the chmod may not fix every problem, but it should at least point users to the right direction. For example, if it's an ownership issue or other ACL issue, the chmod will fail. |
make it to sudo chmod 777 $HOME/.kube |
FYI: In minikube v1.13.0, the help text was updated to say:
|
the solution is : |
The exact command to reproduce the issue:
minikube start
The full output of the command that failed:
The output of the
minikube logs
command:The operating system version:
macOS Mojave Version 10.14.16
The text was updated successfully, but these errors were encountered: