问题描述
我正在运行kubeadm init --pod-network-cidr=10.244.0.0/16
来部署k8s.之后,我运行kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml
来安装Flannel pod网络.在此之后,我启动了核心dns容器并运行了,但日志显示:
I'm running kubeadm init --pod-network-cidr=10.244.0.0/16
to deploy k8s. After it i'm running kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml
to install Flannel pod network.Right after it i have core dns pods up and runnig, but logs say:
[INFO] plugin/reload: Running configuration MD5 = 4e235fcc3696966e76816bcd9034ebc7
CoreDNS-1.6.5
linux/amd64, go1.13.4, c2fd1b2
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:60266->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:40761->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:50495->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:41244->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:37152->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:35273->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:36979->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:56856->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:59105->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:42423->172.20.0.1:53: i/o timeout
我在做什么错?我该如何纠正?
What am i doing wrong?How can i correct it?
推荐答案
核心dns Pod仅取决于网络插件,在您的情况下是法兰绒.如果法兰绒出现任何问题,则dns pod不能正常启动.尝试通过执行以下命令来安装最新版本的法兰绒,如法兰绒github ReadMe.md
中所述.
Core dns pods solely depends upon network plugins which is flannel in your case. If anything is wrong with flannel, dns pods won't start properly. Try installing latest version of flannel by executing below command as mentioned in flannel github ReadMe.md
.
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
这篇关于DNS Pod在kubeadm初始化后失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!