Interview Prep/Kubernetes/Nodes, kubelet and container runtime

Node time on a few nodes is drifting and you see token errors like `Unable to authenticate the request ... token is not valid yet` and TLS failures.

IntermediateTroubleshootingNodes, kubelet and container runtime
Answer

Likely causes → Clock skew. JWT ServiceAccount tokens and TLS certificates have nbf/exp times; nodes minutes off from the API server cause authentication failures, and etcd members with skew log warnings.

Diagnose →

# On each node
timedatectl status
chronyc tracking

Fix → Enable and fix NTP (systemctl enable --now chronyd, point to the cloud time service like 169.254.169.123 on AWS), then restart the kubelet.

Prevent → NTP configured in the base image and an alert on node_timex_offset_seconds.

All Kubernetes questions

More on Nodes, kubelet and container runtime