-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
writing kubeconfig: Error writing file : open : no such file or directory #4100
Comments
The error indicates that the filename was "": return errors.Wrapf(err, "Error writing file %s", filename) |
I'm having the same issue. Which file is this referring to and how is it set? Is it ~/.kube/config? |
So, I had KUBECONFIG set to a list of configs for various clusters I was working with. Apparently, this was prohibiting Minikube from starting. To resolve, I unset KUBECONFIG before starting minikube.
When you're done using minikube and have stopped it, you can source your .bashrc or .bash_profile (wherever KUBECONFIG is defined) or restart your terminal and resume working with the other clusters. Hope this helps someone. |
same here with
|
@den-is Can you share the output of It seems possible that you have KUBECONFIG set to an invalid location in your environment. Alternatively, please share the output of:
Thanks! |
I am curious why your customse kubeconfig was not usable by minikube ! if this is the case ! minikube shouldn't have cared ! if it doest, we need to detect and let user know by a solution message. |
@tstromberg and I think that is pointed to right location
I'm not sure why there is duplicate, but imagine it doesn't exist there, and there are many other "concatenated" kubeconfigs for different clusters |
I had the same issue, the problem is the initial
should be
Probably you have Although the error message could be clearer |
@carlossg good point ! indeed I have error message could be clearer and minikube can be smarter about empty strings too |
Fixes kubernetes#4100 Signed-off-by: Carlos Sanchez <carlos@apache.org>
Signed-off-by: Carlos Sanchez <carlos@apache.org>
Signed-off-by: Carlos Sanchez <carlos@apache.org>
@James-DC commented on Sat Apr 13 2019
This is a Bug Report
Problem:
Running
minikube start
as the setup guide suggests yields the following failure:I found running
sudo minikube start
lets minikube start successfully:However any further interaction with minikube / kubectl also requires the use of sudo to function properly which is not desirable.
Page to Update:
https://kubernetes.io/docs/tasks/tools/install-minikube/
The text was updated successfully, but these errors were encountered: