Skip to content

CoreDNS fails on minions on multi-node clusters. Can't resolve external DNS from non-master pods. #8055

@aasmall

Description

@aasmall

So, I already fixed this and lost some of the logs. But it's pretty straight-forward.

  1. Make a cluster
minikube start --vm-driver=kvm2 --cpus=2 --nodes 3 --network-plugin=cni \
--addons registry --enable-default-cni=false \
--insecure-registry "10.0.0.0/24" --insecure-registry "192.168.39.0/24" \
--extra-config=kubeadm.pod-network-cidr=10.244.0.0/16 \
--extra-config=kubelet.network-plugin=cni
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

n.b. I built from head a couple days ago

minikube version: v1.10.0-beta.2
commit: 80c3324b6f526911d46033721df844174fe7f597
  1. make a pod on master and a pod on a node
  2. from node pod: curl google.com
  3. from master pod: curl google.com

CoreDNS was crashing per kubernetes/kubernetes#75414

Fixed with

kubectl patch deployment coredns -n kube-system --patch '{"spec":{"template":{"spec":{"volumes":[{"name":"emptydir-tmp","emptyDir":{}}],"containers":[{"name":"coredns","volumeMounts":[{"name":"emptydir-tmp","mountPath":"/tmp"}]}]}}}}' 

Edit: had wrong flannel yaml listed.

Metadata

Metadata

Assignees

Labels

area/cniCNI supportarea/networkingnetworking issuesco/corednsCoreDNS related issuesco/multinodeIssues related to multinode clusterskind/bugCategorizes issue or PR as related to a bug.kind/supportCategorizes issue or PR as a support question.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions