On 2017-09-14 12:43 pm, gokhan.se...@gmail.com wrote:
Then, I follow the steps at
https://coreos.com/kubernetes/docs/1.6.1/deploy-addons.html to deploy
DNS add-on.
After that step, I see the kube-dns pod stays at ContainerCreating
status forever.
kube-dns-v20-htqvx 0/3 ContainerCreating 0 16m
./kubectl describe pod kube-dns-v20-htqvx --namespace=kube-system
gives the below log.
FirstSeen LastSeen Count From
SubObjectPath Type Reason Message
--------- -------- ----- ----
------------- -------- ------ -------
16m 16m 1 default-scheduler
Normal Scheduled Successfully assigned
kube-dns-v20-htqvx to 10.201.101.237
15m 15m 1 kubelet, 10.201.101.237
Warning FailedSync Error syncing pod, skipping:
failed to "CreatePodSandbox" for
"kube-dns-v20-htqvx_kube-system(e3f84b85-990d-11e7-9392-005056a16f20)"
with CreatePodSandboxError: "CreatePodSandbox for pod
\"kube-dns-v20-htqvx_kube-system(e3f84b85-990d-11e7-9392-005056a16f20)\"
failed: rpc error: code = 2 desc = NetworkPlugin cni failed to set up
pod \"kube-dns-v20-htqvx_kube-system\" network: Get
https://10.3.0.1:443/api/v1/namespaces/kube-system/pods/kube-dns-v20-htqvx:
dial tcp 10.3.0.1:443: i/o timeout"
I see the dial tcp 10.3.0.1:443: i/o timeout error
I assume something is wrong at my installation. Can you please help?
I'm not too familiar with the coreos setup instructions. But if the
cluster is set up in such a way that it's not using https/port-443 for
the api server - or if somehow the kube-dns pod isn't able to use https
(say, due to not having the certs) then you might see an issue like
above.
I ran into something like this and had to solve it by telling kube-dns
to talk to the apiserver on http/port-8080. You can do this by passing
the "kube-master-url" setting as an arg to kube-dns:
args:
- --domain=cluster.local.
- --dns-port=10053
- --config-map=kube-dns
- --kube-master-url=http://${MASTER_HOSTNAME}:8080
HTH,
DR
--
You received this message because you are subscribed to the Google Groups "Kubernetes
user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.