-
Notifications
You must be signed in to change notification settings - Fork 205
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
Race when updating hosts file? #74
Comments
That is strange since localhost and kubernetes.docker.internal are both aliases in I have not personally run into this problem on my mac. I don't typically run local clusters but I do use my Using 127.0.0.1 to connect to your Docker Desktop is going to be your best option for the time being if the |
@cjimti This bug has reappeared after upgrading from 1.9.1 to 1.11.1. |
More specifically, 1.10.0 works, 1.11.0 does not. |
@cjimti Could you please re-open this issue? |
Is there a reason to use Is there a solution that you have in mind or something I am missing? |
The thing is that #76 fixed the issue, at least for me on Windows. But I can see that it has been replaced with a different mechanism in the newer versions. I can simply stay on 1.10.0 for the time being... |
I'll re-open the ticket and explore any possible solutions but can't promise anything in the short term. Is there an option to prevent Docker Desktop from adding |
I am observing a peculiar issue when running kubefwd with multiple services.
Im an running on Windows with Docker Desktop.
Docker Desktop adds the following entry in the hosts file during installation "127.0.0.1 kubernetes.docker.internal" and it is this host that is specified in the cluster section in the
.kube\config
file (seen bykubectl config view
). The result is that the port-forwarding commands are sent tohttps://kubernetes.docker.internal:6443/...
.However, if kubefwd forwards multiple services, it happens at random that the following error is returned when forwarding services:
Whether the error is shown for a pod or not seems random, however if a selector is specified so that only one service is selected, then the error never shows.
If I update the
.kube\config
file to haveserver: https://localhost:6443
then forwarding starts correctly everytime.I have tried removing the call to pfo.Hostfile.Save() and it seems to solve the problem.
The text was updated successfully, but these errors were encountered: