Health¶
check pods not running / completed¶
check containers of running pods are ready¶
check status of nodes¶
check storage health¶
check kubelet¶
clusterrole¶
check k8s health status¶
This command will be the easiest way to discover if yourscheduler, controller-manager and etcd node(s) are healthy. Warning: v1 ComponentStatus is deprecated in v1.19+
NAME STATUS MESSAGE ERROR
scheduler Unhealthy Get "https://127.0.0.1:10259/healthz":
dial tcp 127.0.0.1:10259: connect: connection refused
controller-manager Unhealthy Get "https://127.0.0.1:10257/healthz":
dial tcp 127.0.0.1:10257: connect: connection refused
etcd-0 Healthy {"health":"true"}
Solution
check component logs
Check Service Status: ensure the services are running and have valid ip
Check Component Health Probes: A healthy component should return an HTTP 200 OK response.