当我们安装新的 kubernetes 集群时。当我们执行以下命令时:
$ kubectl get cs / kubectl get componentstatuses
Run Code Online (Sandbox Code Playgroud)
我们得到这个错误:
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
etcd-0 Healthy {"health":"true"}
Run Code Online (Sandbox Code Playgroud) kubernetes ×1