当前位置:   article > 正文

k8s calico-node错误日志 listen tcp: lookup localhost on ip:53: no such host_lookup node on 223.5.5.5:53: no such host

lookup node on 223.5.5.5:53: no such host

问题描述:

  • 查看pods状态,发现 calico-node异常
[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
  • 1
  • 2
  • 3
  • 4
  • 查看日志提示 :
listen tcp: lookup localhost on ip:53: no such host
  • 1
  • 原因分析:
    localhost未设置映射

  • 解决方案:
    添加localhost映射:

#vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
 
  • 1
  • 2
  • 3
  • 4
  • 5
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/937176
推荐阅读
相关标签
  

闽ICP备14008679号