controller-manager ,scheduler 组件报Unhealthy Get "http://127.0.0.1:10252/healthz": dial t

2021/8/11 23:36:44

本文主要是介绍controller-manager ,scheduler 组件报Unhealthy Get "http://127.0.0.1:10252/healthz": dial t,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1.查看组件状态

[root@k8s-master-01 ~]# kubectl get cs
Warning: v1 ComponentStatus is deprecated in v1.19+
NAME STATUS MESSAGE ERROR
controller-manager Unhealthy Get "http://127.0.0.1:10252/healthz": dial tcp 127.0.0.1:10252: connect: connection refused
scheduler Unhealthy Get "http://127.0.0.1:10251/healthz": dial tcp 127.0.0.1:10251: connect: connection refused

2.注释掉 # --port=0 

[root@k8s-master-01 ~]# vim /etc/kubernetes/manifests/kube-scheduler.yaml
[root@k8s-master-01 ~]# vim /etc/kubernetes/manifests/kube-controller-manager.yaml

# - --port=0 

 



这篇关于controller-manager ,scheduler 组件报Unhealthy Get "http://127.0.0.1:10252/healthz": dial t的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程