Sobes.tech
Middle+

Нода в состоянии NotReady. Что делать?

sobes.tech AI

Answer from AI

If a Kubernetes node is in NotReady state, it means that kubelet on this node is not reporting its normal status to the cluster controllers. To resolve:

  1. Check the node status:

kubectl describe node <node-name>

   Pay attention to events and error messages.

2. Check kubelet on the node itself:
   - Ensure that the kubelet service is running.
   - View kubelet logs:
     ```
journalctl -u kubelet -f
  1. Check network settings and API server accessibility from the node.

  2. Check the status of components that the node depends on (e.g., docker/containerd, CNI plugins).

  3. If the issue is resource-related (e.g., lack of memory or disk), free up resources.

  4. Restart kubelet or the node itself if necessary.

  5. As a last resort, delete and re-register the node in the cluster.

Thus, diagnostics start with kubelet logs and status, then network and system resources are checked.