-
Notifications
You must be signed in to change notification settings - Fork 291
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
Kubernetes services unable to start due to DNS or Certificate issues #3769
Comments
Was this ever resolved for you, @neiltwist ? |
Unfortunately not. Eventually I managed to make stable (2.0.0.3) work outside the corporate firewall, but edge (2.0.3.0) comes up with this error regardless. |
@neiltwist I tried swapping to the Kubernetes version that you mentioned in this issue and got the same error. To fix this, I deleted the pki/ folder in C:\ProgramData\DockerDesktop Restart Docker and this should regenerate client certs for you, which include vm.docker.internal |
Thanks @jpreese , that's fixed the certifcate error, but I'm still getting the DNS error in the main log, and in the etcd logs I get the following:
|
I personally did not have the DNS issue, only the cert one so I can't reproduce that behavior to test. I'd recommend trying some of the proposed solutions here on GitHub (if not already) that speak to DNS issues, here is one example: #1962 (setting DNS to 8.8.8.8, making sure your hosts file references 127.0.0.1, etc) |
I've been through most of those before, did you ever see anything like the below in your certificate issues?
|
Once Kubernetes went green and was no longer stuck in a Starting state, I did not dive into the logs much as everything seemed to be working. |
Ah ok, my kubernetes is still not going green. |
And as I say that, it's gone green. I'm not sure it was adhering to the system proxy settings, so I set them manually. And I'm still getting the DNS error (despite having the manual DNS set), but the original certificate error is fixed and it's working fine now. Thanks for your help! |
Tried all the workarounds here and a couple more that were not mentioned (e.g. used a squid proxy, forced DNS resolutions via 8.8.8.8, etc). Rebooted, restarted, reset to factory defaults over and over again. Nothing worked on my windows 10 box. Strangely, while performing similar mindless repetitive steps on my work laptop, I got k8s working by some miracle.
|
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Actual behavior
kubectl get nodes
returnsNo resources found.
Information
Steps to reproduce the behavior
1 log.go:172] http: TLS handshake error from 192.168.65.3:48722: remote error: tls: bad certificate
andGet https://vm.docker.internal:6443/api/v1/nodes?limit=500&resourceVersion=0: x509: certificate is valid for docker-for-desktop, kubernetes, kubernetes.default, kubernetes.default.svc, kubernetes.default.svc.cluster.local, host.docker.internal, not vm.docker.internal
vpnkit.exe: ICMP: destination unreachable from 192.168.65.3
andtime="2019-04-18T09:43:57+01:00" msg="DNS failure: docker-desktop.\tIN\t AAAA: errno 9002: DnsQuery: DNS server failure."
andtime="2019-04-18T09:43:57+01:00" msg="0/3 system pods running, found labels but still waiting for labels k8s-app=kube-dns, component=kube-controller-manager, component=kube-apiserver..."
The text was updated successfully, but these errors were encountered: