kubespray-node-rejoin
Installation
SKILL.md
Kubespray Node Rejoin
Overview
Rejoining a node with kubespray is a scoped ansible run plus verification. The failure modes are mostly around where you run it from, how you watch it, and what you check after — not the playbook itself.
Run it right
- Scope with
--limit— never run cluster-wide for a one-node repair:
(Control-plane rejoin may needansible-playbook -i inventory/<cluster>/inventory.ini scale.yml -b --limit=<node>cluster.ymlwith the node in the right groups;scale.ymlis for adding workers.) Use the repo's pinned environment (venv) — kubespray is version-sensitive to ansible. - Run from a host that can actually reach the nodes. If your workstation can't SSH to the cluster's network, run the playbook on a host that can (over SSH with a generous timeout), not through hacks on your side.
- Watch, don't block. A rejoin runs 10–40+ minutes. Run it as a background task and poll for the
PLAY RECAPline rather than sitting on a blocking terminal that a dropped SSH connection kills.tmux/nohup+ tailing the log both work.
Read the recap correctly
PLAY RECAP has two distinct failure classes: