赞
踩
问题描述:
[root@k8s-master ~]# kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-node-m5s7m 0/1 Running 0 25s
kube-system calico-node-s959x 0/1 Running 0 12s
listen tcp: lookup localhost on ip:53: no such host
原因分析:
localhost未设置映射
解决方案:
添加localhost映射:
#vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。