A node is `NotReady` and the kubelet log shows `x509: certificate has expired or is not yet valid` when talking to the API server.
IntermediateTroubleshootingNodes, kubelet and container runtime
Answer
Likely causes → The kubelet client certificate expired because rotation was disabled or failed, or the node clock is wrong (not yet valid), common after long power-off or broken NTP.
Diagnose →
# On the node
sudo openssl x509 -in /var/lib/kubelet/pki/kubelet-client-current.pem -noout -dates
timedatectl status
grep -i rotateCertificates /var/lib/kubelet/config.yaml
kubectl get csr # pending kubelet CSRs
Fix → Fix time sync (chronyc makestep). For an expired cert on kubeadm, re-bootstrap the kubelet: create a new join token, rejoin the node, or regenerate kubelet.conf with kubeadm kubeconfig user on the control plane. Approve pending CSRs if they are legitimate: kubectl certificate approve <csr>.
Prevent → rotateCertificates: true, working NTP, and monitoring of certificate expiry on nodes.
More on Nodes, kubelet and container runtime
A node is `NotReady` and `kubectl describe node` shows `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.BeginnerA node flips to `NotReady` with `Kubelet stopped posting node status`.BeginnerNode condition shows `PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s`.AdvancedAfter a reboot the kubelet will not start: `failed to run Kubelet: running with swap on is not supported, please disable swap!`.BeginnerOn a new kubeadm node, static control-plane Pods and other Pods restart randomly every few minutes. Containerd is installed from the distro.AdvancedPods are evicted from a node with `The node was low on resource: ephemeral-storage. Threshold quantity: 10%, available: 8%` and the node shows `DiskPressure`.Intermediate