https://github.com/unixhot/salt-kubernetes/tree/master/addons/coredns

https://github.com/unixhot/salt-kubernetes/blob/master/addons/coredns/coredns.yaml

kubectl create -f coredns.yaml

pod的dns 是kubelet指定的

coredns或者kube-dns的

dns在coredns的yml文件可以看出是挂载服务器的/etc/resove.conf

07-k8s-dns_07-k8s-dns

07-k8s-dns_07-k8s-dns_02

07-k8s-dns_07-k8s-dns_03

07-k8s-dns_07-k8s-dns_04