k8s-for-docker-desktop
k8s-for-docker-desktop copied to clipboard
k8s desktop 1.18.8 displays controller-manager or scheduler unhealthy
docker desktop for mac or windows which running k8s 1.18.8 executes cmd: kubectl get cs, and displaying controller-manager or scheduler unhealthy。
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
etcd-0 Healthy {"health":"true"}
Mac OS下也会出现,有什么办法解决吗?网上现有的处理方式好像都不适用于Docker Desktop。
我也碰到同样的问题,目前还没有解决,请问有解决方案吗?
这个warning可以忽略,component status会在1.19被deprecated
https://github.com/kubernetes/kubernetes/pull/93570
Mac OS下也会出现,有什么办法解决吗?网上现有的处理方式好像都不适用于Docker Desktop。
我在一台 Ubuntu 上用 kind 装了 k8s 也报了 unhealthy ,采用docker exec -it 进入容器删除 scheduler 和 controller-manager 的 yaml --port=0 解决了 unhealthy 问题。 但是 mac 上用 desktop 装的 k8s 就进不去容器。 不过大佬已经回复,这个状态被 deprecate,可以放心使用了。