故障指路-組件 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 不健康。
  • 如圖
    image

  • 解決方法

/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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM