故障指路-组件 controller-manager 不健康-controller-manager Unhealthy

故障现象

  • k8s
[root@k8s-mastera-new ~]# kubectl get cs
Warning: v1 ComponentStatus is deprecated in v1.19+
NAME                 STATUS      MESSAGE                                                                                       ERROR
scheduler            Unhealthy   Get "http://127.0.0.1:10251/healthz": dial tcp 127.0.0.1:10251: connect: connection refused   
controller-manager   Unhealthy   Get "http://127.0.0.1:10252/healthz": dial tcp 127.0.0.1:10252: connect: connection refused   
etcd-0               Healthy     {"health":"true"}  
  • rancher
    登录rancher,进入仪表盘发现组件告警
警告: 组件 controller-manager 不健康。
警告: 组件 scheduler 不健康。
  • 如图
    故障指路-组件 controller-manager 不健康-controller-manager   Unhealthy

  • 解决方法

/etc/kubernetes/manifests/controller-manager.conf
/etc/kubernetes/manifests/scheduler.conf
这两个文件里面,删除--port=0这个配置
然后systemctl restart kubelet
  • 原理暂不明确
    git上官方说是小bug

  • 参考文档

https://my.oschina.net/u/1431757/blog/4550843
https://blog.csdn.net/gaojie314/article/details/116879535
https://github.com/rancher/rancher/issues/28802

上一篇:【盘点】深度学习最常用到的20个Python库


下一篇:【20211221】CmsWing代码分析 - src/controller/extend/controller.js(二)