Manage nodes
Join a Linux host to a Kite cluster, check it, update its agent, and remove it.
A host opens a connection out to the control plane, so it needs no inbound route. To have Kite create machines in GCP, AWS or DigitalOcean instead, see Set up a node pool.
What you need
- The
kiteCLI. See Install the CLI. - The cluster’s admin token, or a
kite loginaccount that can create Secrets inkube-system. - A Linux host, amd64 or arm64, with at least 512 MiB of memory. Pods can request all but 100m of CPU and 256Mi of memory. See Reserve CPU and memory for the host.
- A root shell on the host, with systemd and apt.
- nftables 1.0.9 or later, as in Ubuntu 24.04 and Debian 13.
| Access | Direction | For |
|---|---|---|
| TCP 443 to the cluster | Outbound | The node’s connection to the control plane |
| Your image registries, and containerd’s sandbox image registry | Outbound | Image pulls |
| UDP 51820 | Open to the other nodes | Pods that connect to pods on those nodes. See Pod ranges and peer reachability. |
For hosts in different networks or clouds, the cluster must allow public
endpoints, with KITE_NETWORK_PUBLIC_ENDPOINTS=Allowed. It is off by default.
See Join nodes in different networks.
Run one agent per host, because two agents on one host overwrite each other’s network configuration.
Debian 12 does not work: its nftables 1.0.6 refuses the rules that bind each pod to its addresses, so the node does not become Ready.
Join an existing host
Before it installs anything, kite node add checks the host: its OS, CPU,
nftables, memory, and whether it reaches the cluster. A host that fails a check
gets nothing installed, and the command prints each failure with its fix and
deletes the join token it made. --skip-checks installs anyway. The check does
not test UDP 51820 between nodes, because a WireGuard port that drops packets
looks the same as one that is open; see Configure WireGuard
transport.
checking the host through ssh root@node-1
FAIL os Debian GNU/Linux 12 (bookworm). Kite supports Ubuntu 24.04 and Debian 13, whose nftables it needs: use one of them.
ok cpu x86_64
ok nftables not installed: the install adds the distribution's
ok memory 3916 MiB
ok cluster https://kite.example.com/healthz
kite: the host failed 1 check, so nothing was installed. Fix it, or pass --skip-checks to install anyway.
If the install fails, the command prints the last 20 lines the host printed.
Add the host. For a cluster that you deployed from this workstation,
--deployment reads the cluster’s address and admin token from the
deployment’s settings file:
kite node add --deployment kite-control root@node-1
For a self-hosted control plane, pass the kubeconfig that
sudo kite-control kubeconfig prints on its server instead:
kite node add --kubeconfig kite.yaml root@node-1
If you signed in with kite login <url>, leave out --deployment. The command
installs the agent and joins the host with a token that expires in an hour. It
prints each install step, and ends with the node’s name once the node is
Ready:
joined wss://kite.example.com/connect as node-1
bootstrapped node-1. Update this host with 'kite-agent update' from now on.
kite-node-name=node-1
waiting for node-1 to report Ready
node-1
If another tool gives you a root shell on the host, pass it with --via:
kite node add --via "gcloud compute ssh node-1 -- sudo bash"
Join a host lists every target and option.
Join from the host
To join a host from a root shell on the host instead of from your workstation,
run kite-agent join there, as
Administer a Linux node shows. Before you do,
set two values in /etc/containerd/config.toml yourself, then restart
containerd:
SystemdCgroup = truein the runc options. Without it, the agent logscannot run podsand exits, because no pod’s limits would apply. On containerd 1.7, which does not report its cgroup driver, the agent reads the setting fromcontainerd config dump.use_local_image_pull = true. Without it, containerd does not use the agent’s registry mirror, and pulls images directly from the registry.kite node addsets this value when the file sets it tofalse.
Check a joined host
On the host, run:
sudo kite-agent status
sudo kite-agent logs
A joined host with a running agent prints:
node node-1
cluster wss://kite.example.com/connect
reachable yes
machine
driver
host
taints
max-pods
kube-reserved
network-endpoint
network-public-endpoint
network-port
network-mtu
agent active
version 07eb81443336
Each field from machine to network-mtu shows the value that the join wrote
to /etc/kite/node.env. A field is empty when the join set no value. version
is the agent build.
| What you see | What to do |
|---|---|
not joined | Run kite node add for the host again. |
| The agent is inactive | Run sudo kite-agent start, then read the logs. |
| The cluster address does not resolve or respond | Fix the join URL, or restore the host’s outbound access. |
| The node is Ready but a pod does not run | See Troubleshoot. |
Reserve CPU and memory for the host
A node reserves 100m of CPU and 256Mi of memory for the agent, containerd and the host’s own processes. See Capacity and allocatable.
On a host that you joined with kite node add or kite-agent join, run
kite-agent join again on the host with --kube-reserved, which uses kubelet’s
syntax. The agent restarts and keeps its other settings:
sudo kite-agent join --cluster <wss-url>/connect --kube-reserved cpu=100m,memory=512Mi
On the nodes of a pool, set spec.template.kubeReserved on the
NodePool. It applies to the nodes that the
pool creates after you set it, and overrides --kube-reserved:
spec:
template:
kubeReserved:
cpu: 500m
memory: 2Gi
Configure WireGuard transport
Pass the network options in
WireGuard settings to
kite-agent join, or set them in /etc/kite/node.env. Restart the agent after
you change the endpoint, the MTU or the private key. Do not share a key path
between clusters or nodes.
Upgrade a node
Upgrade the control plane first. Then, with the cluster’s admin token, run:
kite node update --all
The cluster updates each node that runs an older agent, one node at a time. To
update only the nodes you choose, pass their names instead of --all. To see
which nodes are behind first, run kite node update with no node. It lists
each node that runs another agent or settings, with the reason from its
AgentUpdate condition, and says which node a paused rollout waits on.
kubectl get nodes -o wide shows each node’s Agent, Desired and Update
columns.
Automatic updates are off by default. Turn them on with
kite node update --automatic on.
Update a node from the host
The cluster cannot update an agent that logs rejected by control plane with
the reason protocol version <n>, expected <m>. Update it over SSH instead:
kite node update --host root@node-1 --host root@node-2
Or run sudo kite-agent update on the host.
If an update fails
If a node is not Ready again within ten minutes, the rollout pauses. Read
sudo kite-agent logs on the host, fix the cause, then run
kite node update <node> to resume the rollout.
Leave and remove a node
Remove the node with its host’s target, the same one that kite node add
took:
kite node remove node-1 --host root@node-1
It drains the node, then runs kite-agent leave on the host, which stops the
agent and deletes its node credential, and then deletes the Node. A host that
still ran the agent would register itself again.
The drain marks the node unschedulable and evicts each of its pods through the
eviction API, as kubectl drain does, so a PodDisruptionBudget is honoured.
It keeps a DaemonSet’s pods. It waits up to --timeout, 5 minutes by default,
for the pods to go. To drain a node without removing it, run
kite node drain node-1.
For a host that no longer exists, pass --gone instead of --host. It
deletes the node’s pods at once, without the drain, and then the Node:
kite node remove node-1 --gone
Without kite, run sudo kite-agent leave on the host, then
kubectl delete node node-1. The cluster evicts the node’s pods about 60
seconds after the agent stops. See
When a node disconnects.
Next
- Run pods in a sandbox: install gVisor or Kata on the host and label its node.
- Nodes: what the agent does and what happens when a node disconnects.
- Set up a node pool: have Kite create machines in GCP, AWS or DigitalOcean.
- Send node telemetry: post node logs and metrics to your collector.
- Node agent reference: network settings and telemetry fields.