My machine is unreachable over SSH and kubectl. What do I do?
When a Kubernetes node is unreachable over SSH and kubectl, Syself Autopilot handles a cloud node on its own: after 10 minutes it reboots the server, and it replaces the server if the reboot does not help. A bare-metal server that stops responding is not reinstalled automatically, so you look at it yourself.
To investigate a machine before it is replaced, pause it first:
kubectl annotate machine <machine-name> cluster.x-k8s.io/paused=true
Then test the SSH port. Nodes run SSH on port 100:
nc -vz <server-ip> 100
Ping is not a test, because a healthy node does not answer ping from outside the cluster.
If port 100 does not answer, the server crashed during boot or its network did not come up. A console shows what happens during boot:
- Cloud servers: the console in the Hetzner Cloud Console.
- Bare metal: a KVM console, which you order in Robot.
Remove the pause when you are done. If the server boots but stays unreachable, contact support. If Hetzner locked the server, see Hetzner blocked a server IP. Why will it not rejoin after unlock?
To read the boot output or get logs out of the Hetzner rescue system, follow Serial console and rescue system. If you open a support case, collect the logs first when you can.
Related questions
