Add a rig on a Kubernetes cluster
Control can set rigs up on a Kubernetes cluster with a kubeconfig you give it once. Each rig is two pods, its harness and its supervisor, which share one volume on one node. Control applies them, waits for the rig’s first report, and later stops, starts and removes it, moves it onto new images, or changes its GPUs, CPUs and memory.
Control places each rig in one of two ways:
- A namespace control creates for each rig, with the rig’s own network rules. The kubeconfig needs rights to create namespaces.
- Slots: namespaces the cluster’s operators made for Thermite in advance, with their own quotas and network rules. Control only deploys into a free one.
Before you start
Section titled “Before you start”- Control is ready for rigs elsewhere: its address (
THERMITE_CONTROL_PUBLIC_URL), from which it takes its message bus’s address for rigs unlessTHERMITE_NATS_PUBLIC_URLnames one, and the rig images, plusTHERMITE_RIG_HARNESS_CUDA_IMAGEfor GPU rigs, andTHERMITE_RIG_HARNESS_CUDA13_IMAGEfor a rig on Blackwell GPUs or a DGX Spark, which MCP’sadd_cluster_rigadds withcuda: "13". Without an address for rigs on its bus, control sets up no rig: a rig talks to control only on the bus. See Let rigs on other machines reach control. - The cluster’s pods can reach control’s address and the message bus’s port (4222 on control’s host, unless control names another: Run the message bus), and pull the images. Control adds no image pull secret, so the nodes must be able to pull the images without one (Push the images to your own registry).
- A kubeconfig with everything written inside it: a
token, orclient-certificate-dataandclient-key-data, andcertificate-authority-data. Control refuses a kubeconfig that runs a command to log in (execor an auth-provider), reads files, or goes through a proxy (proxy-url). It also refuses one that skips TLS checks (insecure-skip-tls-verify) or reaches its API server over plainhttp://, unless you accept that its connection isn’t checked (below). - Rights for the kubeconfig: for namespaces control creates, see below; for slots, a role in each slot (below).
- For GPUs: NVIDIA’s device plugin (
nvidia.com/gpu), or a device class for DRA (Kubernetes’ Dynamic Resource Allocation).
What created namespaces need
Section titled “What created namespaces need”Rights across the cluster, since the namespaces don’t exist yet: to create and delete namespaces, and in them to create, change and delete deployments, services, secrets, persistent volume claims and network policies (and resource claim templates for DRA). To tell which GPU a DRA device class names, control may also read resource slices (get and list on resourceslices in resource.k8s.io): without them, control can’t tell a Blackwell GPU from an older one, nor which node a DRA class’s GPU is on, and a runner on such a GPU takes CUDA 12 unless MCP’s add_cluster_runner is given cuda 13. Control also scales and restarts the deployments to stop, start and restart the rig. To move the rig onto new images, or to change its GPUs, CPUs or memory, it applies the deployments again; with DRA and a new number of GPUs, it also deletes the rig’s resource claim template and makes it again, since a template can’t change. After a start, a restart or a change, it reads the deployments’ status (get) until the new pods run. With rights to read nodes, storage classes and device classes, its check of the cluster shows them; without them it shows less. Control never reads pods.
Thermite’s own cluster test uses the cluster’s admin kubeconfig for this placement, so there is no tested narrower role to copy. If the cluster’s operators won’t give control rights across the cluster, use slots.
What a slot needs
Section titled “What a slot needs”The cluster’s operators make each slot. Thermite’s own cluster test gives control a service account in the slot, with these roles:
kubectl create serviceaccount thermite-control -n thermite-slot-1kubectl create role thermite-control -n thermite-slot-1 \ --verb=get,list,watch,create,update,patch,delete \ --resource=deployments.apps,services,persistentvolumeclaims,secrets,pods,resourceclaimtemplates.resource.k8s.iokubectl create rolebinding thermite-control -n thermite-slot-1 \ --role=thermite-control --serviceaccount=thermite-slot-1:thermite-controlkubectl create role thermite-control-read -n thermite-slot-1 \ --verb=get,list --resource=networkpolicies.networking.k8s.io,resourcequotaskubectl create rolebinding thermite-control-read -n thermite-slot-1 \ --role=thermite-control-read --serviceaccount=thermite-slot-1:thermite-controlFor a user rather than a service account, give --user=<the kubeconfig's user> to the two rolebinding commands. With rights to read the slot’s resource quota (resourcequotas in the second role), control also fills in the rig’s CPUs, memory and volume from it, and keeps the rig within it when it adds the rig and when it changes its GPUs, CPUs and memory: its CPUs (limits.cpu, else requests.cpu), its memory (limits.memory, else requests.memory), its GPUs through the device plugin (requests.nvidia.com/gpu), and, with DRA, the devices of its class (gpu.nvidia.com.deviceclass.resource.k8s.io/devices for the class gpu.nvidia.com).
Control writes no network rules in a slot, but it reads them. It refuses a slot unless some network rule selects the rig’s harness pods (label app.kubernetes.io/component: harness), and every such rule lets them reach only DNS (port 53), addresses outside the private, shared and link-local ranges (the list), or exactly an address of Settings › Addresses rigs may reach on its listed TCP ports (below). Thermite’s cluster test uses this rule. Its egress part is the same as the rule control writes in a namespace it creates, and its ingress part lets only the rig’s supervisor connect to the harness:
apiVersion: networking.k8s.io/v1kind: NetworkPolicymetadata: name: thermite-harness namespace: thermite-slot-1spec: podSelector: matchLabels: app.kubernetes.io/component: harness policyTypes: [Egress, Ingress] ingress: - from: - podSelector: matchLabels: app.kubernetes.io/component: supervisor ports: - { port: 8700, protocol: TCP } egress: - ports: - { port: 53, protocol: UDP } - { port: 53, protocol: TCP } - to: - ipBlock: cidr: 0.0.0.0/0 except: # the private, shared, link-local and this-network ranges - 10.0.0.0/8 # public-check: allow (a reserved range) - 172.16.0.0/12 # public-check: allow (a reserved range) - 192.168.0.0/16 # public-check: allow (a reserved range) - 100.64.0.0/10 # public-check: allow (a reserved range) - 169.254.0.0/16 # public-check: allow (a reserved range) - 0.0.0.0/8Control also reads who may connect to the harness, but it takes the slot either way: the harness asks for a token on every route but its health. When no rule limits the harness’s ingress, or a rule lets in pods other than the rig’s supervisor (a rule with no from, another pod selector, a namespace selector or an address range), the rig’s Set up by control block warns Other pods can connect to this rig's harness., says which rule in words, such as no network rule in the slot limits who may connect to the harness, so every pod in the cluster can reach its port 8700, and shows the NetworkPolicy that lets only the rig’s supervisor in, thermite-<rig>-harness-in, for the operators to apply. Rules add up, so the rule the warning names must go or be narrowed too. Check again on the cluster in Settings reads the slot again, and the warning goes once only the supervisor may connect. A supervisor’s rule counts when it selects pods by app.kubernetes.io/component: supervisor in the slot itself.
If the slot has other rules, such as one that denies all traffic, they must still let the supervisor pod (label app.kubernetes.io/component: supervisor) reach control’s address, the internet, the harness on port 8700, and any MCP server its runs’ kits give the advisors. The harness pod calls the MCP servers of the workers and the planner, so it too must reach them, outside these ranges.
A helper that writes a slot’s objects out for the operators is planned (goal 033).
1. Add the cluster
Section titled “1. Add the cluster”- Press the cog at the foot of the sidebar to open Settings, then Machines under Rigs, and press Add a machine.
- Choose A Kubernetes cluster, and fill in:
- Name: the name Thermite shows for it, such as
cluster-1 - Kubeconfig: paste it
- Context: which context to use. Empty: its current context
- Placement: A namespace control creates for each rig, or Slots the cluster’s operators made
- Namespace for each rig (created namespaces):
thermite-{rig}by default.{rig}becomes the rig’s name - Slots (slots): the slot namespaces, separated by commas, such as
thermite-slot-1, thermite-slot-2 - Unchecked connection: leave I accept that this cluster’s connection isn’t checked clear, unless the kubeconfig skips TLS checks or uses plain
http://and you accept that control can’t tell the real API server from another one on the way, which would see every rig’s tokens and the secrets control applies there
- Name: the name Thermite shows for it, such as
- Press Add and check the cluster.
Control reads the cluster and changes nothing. The page says "cluster-1" is added and checked: see what control found below. The cluster’s row shows:
- Version and Nodes, with each node’s GPUs;
- GPUs: NVIDIA’s device plugin, DRA device classes, or neither; and, where control may read the cluster’s resource slices, the GPU each device class names, by the UUID or the name its selectors give, which sets the CUDA a rig takes;
- Storage: the storage classes, with the default one marked;
- Placement: “control may create namespaces”, or each slot with “free”, “used by rig …”, “refused: …” or “control may not deploy here”.
A refused kubeconfig gives “Not added: …” with the reason. One that skips TLS checks or uses plain http, without the tick, gives Not added: cluster "<name>" skips TLS checks (insecure-skip-tls-verify), so control can't tell the real API server from another on the way. … (or … reaches its API server over plain http, …), and control keeps nothing of it. With the tick, control adds it, the page adds You accepted that its connection isn't checked: …, the cluster’s row shows the chip connection not checked: you accepted it … ago, and the audit log’s cluster_added has unchecked_accepted, with what is unchecked. To make it checked, delete the cluster and add it again with a kubeconfig that has its certificate-authority-data over https.
To change the slots later, edit Slots on the cluster’s row and press Save the slots. Control reads each one again.
2. Add the rig
Section titled “2. Add the rig”Add a rig is a wizard: one step at a time, with Back and Next. Each field has an “i” that says what it means, and each step links to its page here.
-
Open Rigs in the sidebar, then press Add a rig.
-
Under What kind of rig?, choose One machine, for a rig whose agents and GPUs are in one slot or one namespace, and press Next. For a rig whose agents run in one place and whose GPUs are on other nodes, choose Several machines (Give a rig runners on other machines).
-
Under Where does it run?, choose the place. A cluster of slots lists each free slot, such as thermite-slot-2 (a slot of cluster-1), with what its quota allows; a cluster where control creates namespaces is one row, cluster-1 (Kubernetes · a namespace of its own). A cluster that is not ready says why, for example “control may not create namespaces there” or “it has no free slot”. Then:
- Node: any node with room, or one of the cluster’s ready nodes. A slot whose rules take pods only on nodes they name offers only those, the first chosen: control’s check of the cluster asks it which nodes each slot takes, with a dry run there of a deployment of control’s harness image on each node, which the cluster’s admission rules check and which creates and pulls nothing. A rig or a runner there with no node given goes on the slot’s one node, and a node the slot doesn’t take is refused in words, such as
The slot thermite-slot-2 takes pods only on node-a: choose one of them as the node. - CPUs and Memory (GiB): both or neither. Control fills them in from the slot’s quota when it can read it. At least 1.5 CPUs and 8 GiB: a new rig’s agent programs run in their own terminals, so the supervisor takes a quarter of the CPUs (at least half a CPU, at most 2) and 4 GiB of that for the advisors’ terminals, and the harness the rest (The supervisor’s share). Empty: the namespace’s defaults apply.
- Disk (GB): the rig’s one volume, from the slot’s quota, else 100 GB, in the cluster’s default storage class. It holds the rig’s state, builds, inbox and outbox.
Press Next.
- Node: any node with room, or one of the cluster’s ready nodes. A slot whose rules take pods only on nodes they name offers only those, the first chosen: control’s check of the cluster asks it which nodes each slot takes, with a dry run there of a deployment of control’s harness image on each node, which the cluster’s admission rules check and which creates and pulls nothing. A rig or a runner there with no node given goes on the slot’s one node, and a node the slot doesn’t take is refused in words, such as
-
Under Which GPUs does it use?, tick its GPUs: a node’s GPUs through NVIDIA’s device plugin, and in a slot, each DRA device class its quota allows, as many times as it allows (a slot whose quota names no class offers none). A rig on a cluster takes its GPUs from one node and one way, so ticking a GPU of another row unticks the others; the rig goes on that node. With none, it measures on the CPU. With two or more, GPUs for the judge sets the judge’s share, half by default. The rig runs the CUDA harness its GPUs take, as control reads them: a node’s architecture (
kubernetes.io/arch) and GPU (nvidia.com/gpu.product), and a DRA device class’s GPU and node when control may read the cluster’s resource slices; MCP’sadd_cluster_rigtakescudato choose (The CUDA harness). Press Next. -
Under Name it and create it, give a Rig name: 2 to 40 lowercase letters, digits and dashes, starting and ending with a letter or digit. It can’t change later. A name control knows already, a removed rig’s too, says so under the field, “There is a rig named rig-1 already: a removed rig keeps its name, so choose another.”, and Create the rig stays off. What this rig will be says where it runs and how its GPUs are split.
-
Press Create the rig.
In a slot whose network rules don’t keep the harness off the cluster, control refuses with “Refused: in the slot thermite-slot-1, …” and says why. A runner refused this way is named in the rig’s page’s message, “The rig is being set up, but a runner was not added: …”, and in its history. Ask the cluster’s operators for a rule like the example above.
3. Watch it start
Section titled “3. Watch it start”You land on the rig’s page: “Control is setting rig-1 up on cluster-1. Its page fills in once the rig reports for the first time.” Its Set up by control block lists each step, and shows each one as it comes, with no refresh:
- ✓ Enrolled with control: a token of its own
- ✓ Its objects applied in the cluster: namespace, secret, volume, deployments
- ✓ Its key on the message bus registered
- ✓ First report reached control
Control waits up to 10 minutes for the first report, and the nodes pull the images in that time. The report comes over the message bus: pods that can’t reach the bus’s port never report, and 5 minutes after the rig registered its keys, its page shows it Broken (A rig off the bus). If a large image takes longer, the step shows ✕ “no report after 10 minutes: it may not have started”, and the block’s status says failed. When the rig reports later, its page still fills in, the status says running again, and a ✓ step follows the ✕: “First report reached control · it reported after the wait ended”.
What control applies, all labelled app.kubernetes.io/instance: rig-1:
| Object | Name |
|---|---|
| Namespace (created namespaces only) | thermite-rig-1 |
| Secret: the rig’s tokens and control’s public key | thermite-rig-1 |
| Persistent volume claim | thermite-rig-1-data |
| Service for the harness | thermite-rig-1-harness |
| Resource claim template (DRA only) | thermite-rig-1-gpus |
| Deployments | thermite-rig-1-harness and thermite-rig-1-supervisor |
| Network rules (created namespaces only) | thermite-rig-1-harness-net and thermite-rig-1-supervisor-net |
Both deployments’ pods run without a service-account token, without the namespace’s services as variables (enableServiceLinks: false), and under the container runtime’s default seccomp profile (RuntimeDefault).
In a namespace it creates, control’s network rules let the harness reach only DNS, addresses outside the private, shared and link-local ranges, and each address in Settings › Addresses rigs may reach on its listed TCP ports, and let only its supervisor reach the harness. At every start, the harness’s isolation check tries to reach the cluster’s API server from a lane. Where the cluster’s network plugin doesn’t enforce network rules, or a slot’s rules let the harness reach the cluster, the check fails with the cluster does not hold the rig's network rules: lane-1 reached the cluster's API server (…), and the rig’s page shows it (The isolation check). The supervisor’s deployment carries the message bus’s address (THERMITE_NATS_URL, from control’s THERMITE_NATS_PUBLIC_URL) and the certificate of control’s authority for the bus (THERMITE_NATS_CA), which is no secret, in its environment: each update and each change of size applies the deployments again with the ones control has then, so a rig set up before the bus, which is broken until then, gets them at its next update. Control refuses the update while it has no address for rigs on its bus. Control’s rules limit only what reaches the supervisor, never where it goes; the cluster’s network, and in a slot the operators’ rules, must let it reach the bus’s port.
Each deployment checks its part’s health: startup, readiness and liveness probes on the part’s /v1/health, which answers 503 while one of its loops is late. The startup probe gives the harness 10 minutes to start (its isolation check runs before it listens) and the supervisor 5; then the kubelet looks every 30 seconds and restarts a part that fails three times running. The harness is asked on its port, 8700; the supervisor inside its container, with node -e, since it takes no connection. Each pod has 30 seconds to stop (terminationGracePeriodSeconds): the harness ends its trials as interrupted and waits at most 5 seconds for the judge’s job, whose lease is taken back at its next start. See A part that is unhealthy.
If it doesn’t report
Section titled “If it doesn’t report”Look at the rig’s pods, with the rig’s namespace (in a slot, the slot’s):
kubectl get pods -n thermite-rig-1 -l app.kubernetes.io/instance=rig-1kubectl describe pods -n thermite-rig-1 -l app.kubernetes.io/instance=rig-1kubectl logs -n thermite-rig-1 deployment/thermite-rig-1-supervisor| The pods show | Why | Do |
|---|---|---|
Pending | No node has room for the GPUs, CPUs or memory, or the volume claim is not bound. The events at the end of describe say which | Free room, or ask the operators. If the rig needs other choices, see below |
ErrImagePull or ImagePullBackOff | The nodes can’t pull an image | Make the image pullable without signing in: Push the images to your own registry |
Running, and still no report | The supervisor’s log says why. following failed; trying again with a refused or timed-out connection: the pods don’t reach the message bus’s port | A rig is quiet; open the bus’s port to the cluster: Run the message bus |
Once the cause is fixed, the pods start and the rig reports by itself, and its status goes back to running. If the rig needs another storage class or node, remove it (below) and add a new one under a new name: a removed rig’s name can’t be used again. New images need no new rig, and neither do another number of GPUs, other CPUs or other memory: see Update the rig’s images and Change the rig’s GPUs, CPUs and memory.
Afterwards
Section titled “Afterwards”The rig’s page keeps the Set up by control block: the cluster, the namespace (“made by control” or “a slot”), the GPUs, the CPUs and memory (16 CPUs, 52 GiB, or “the namespace’s defaults”, with a link to change them on Edit rig), the storage, what its harness reaches beside DNS and the internet (below), the images and each step so far. Its heading shows the rig’s status there, such as running, stopped, starting, draining, updating or failed. Its buttons:
- Stop its pods or Start its pods (the deployments scale to 0 or 1), and Restart them. After a start or a restart, the page says
Started.orRestarted., and the status saysstarting. As after an update, control waits up to 15 minutes for the pods and then up to 10 minutes for a report. The steps “Its pods run again” and “A report reached control after the start” get a ✓, and the status saysrunning. If a wait runs out, its step gets ✕ and the status saysfailed. - Update to these images, when control deploys other images than the rig runs; Try the update again, when the last change to its pods failed; Give it control’s new address, when only control’s address changed. See Update the rig’s images.
- Change now, without waiting and Call the change off, while the rig drains before a new number of GPUs, CPUs or memory. See Change the rig’s GPUs, CPUs and memory.
- Remove it from cluster-1: type
remove rig-1and press Remove the rig. Control deletes the namespace it created, or the rig’s objects in the slot, and retires the rig’s token. Control removes it only once every result has left it, so export first; until then it refuses withrig-1 still holds results:and what waits on the rig. If its results can’t leave, such as when its supervisor is broken, typediscard rig-1instead: what the rig held goes with its volume, and the audit log records it. Control keeps the rig’s exports, its events, its champions’ patches and what its runs added to Thermite’s knowledge base. The page saysRemoved from the cluster., and the rig stays in Rigs, Stale and then Offline. To take it off the rig lists too, use Retire it at the top of its page: typeretire rig-1and press Retire it.
Control makes one change at a time. While the status says starting or updating, it refuses a start, a restart or an update, and the page shows a card that starts with Not done., such as rig-1 is starting: wait until its page shows it running, or failed. It refuses an update before it compares any images, even for a rig that already runs control’s images. Stop its pods and Remove the rig are never refused for this, and they end control’s wait: a rig you stopped or removed meanwhile doesn’t turn failed later.
Next, check the rig, then give it a model.
Reach a model server on a private or Tailscale address
Section titled “Reach a model server on a private or Tailscale address”The rig’s harness calls its model and reaches its measurement target from the harness pod, which reaches no address in the private, shared or link-local ranges. A model server or a target on such an address, such as a server on your own network or a Tailscale address (in RFC 6598’s shared range), must be in control’s list of addresses cluster rigs may reach. Each address in it opens one host to every cluster rig’s harness, on its TCP ports only. Code that a lane runs reaches it too, so list only what the rigs need.
- Open Settings › Addresses rigs may reach: the cog at the foot of the sidebar, then Addresses rigs may reach in Settings’ navigation.
- Fill in the form:
- Address: one IPv4 or IPv6 address, such as
fd7a:115c:a1e0::7. A range, a name or an address outside the private, shared and link-local ranges is refused: the harness reaches those already. - TCP ports: the ports the harness reaches it on, such as
8000, separated by commas or spaces; at most 16. - What it is: a note, such as
the model server.
- Address: one IPv4 or IPv6 address, such as
- Press Save the address. The block says
The list holds 1 address. Control applies it to the network rules of rig-1 now., and the address shows in the list with its ports, its note and who set it when. An address already in the list takes the new ports and note in place of its own; Remove takes it out.
Where each rig takes the list:
- In a namespace control created, control applies the rig’s two network rules again at once, with one more egress rule for each address: to it alone (
/32, or/128for IPv6) on its ports. The pods don’t restart. The rig’s history gets the step “Its network rules applied with the list of addresses rigs may reach”, and the Set up by control block says what its harness reaches. A rig added later gets the list as it is then. - A rig you joined got the list as it was when its join command ran. To change it, the namespace’s operator adds a NetworkPolicy beside control’s, such as the one below.
- In a slot, the operators write the rules. Control’s check of the slot accepts a rule that opens exactly a listed address on some of its listed TCP ports, and refuses one that opens it on every port, on another port, over UDP or as a range of ports, or opens a wider block. Add a rig says why, such as
the rule "thermite-rig-1-model" opens 100.64.0.7 on more than its listed TCP ports (8000). The rig’s page lists each address its slot’s rules opened when control added it, with the rule’s name.
A rule that opens one address on one port, for a slot’s operators or a joined namespace, for a model server on port 8000:
apiVersion: networking.k8s.io/v1kind: NetworkPolicymetadata: name: thermite-rig-1-model namespace: thermite-rig-1spec: podSelector: matchLabels: app.kubernetes.io/instance: rig-1 app.kubernetes.io/component: harness policyTypes: [Egress] egress: - to: - ipBlock: { cidr: 100.64.0.7/32 } # the server's address (public-check: allow) ports: - { port: 8000, protocol: TCP }Network rules add up, so control’s own rule stays as it is. Over REST the owner reads and sets the whole list with GET and PUT /v1/reachable-addresses; over MCP, reachable_addresses reads it with the owner’s or the operator’s token, and set_reachable_addresses sets it with the owner’s.
Update the rig’s images
Section titled “Update the rig’s images”After you update Thermite, push the new images and restart control with them (Push the images to your own registry). The rig keeps running its old images until you move it: its Set up by control block then says “Control now deploys other images:” and offers Update to these images. A rig at work drains first: it starts nothing new, and its pods restart once its running trials and the judge’s job under way end; Update now, without waiting skips the wait, and Call the update off ends the drain. The drain waits 60 minutes at most, by default: then it asks you under Needs you to update it now or to end the drain (At its deadline). Control then applies the rig’s two deployments again with the new images, waits for the new pods and a report from them, and lists each step in the block. The rig’s volume, tokens, runs and results stay, and so does each lane’s build cache.
- Control’s address for rigs must be set (
THERMITE_CONTROL_PUBLIC_URL). The update writes it into the rig’s supervisor again, so a changed address reaches the rig too. Without it, control refuses:Control's address for rigs is not set (THERMITE_CONTROL_PUBLIC_URL): the rig would no longer know where to report. - One change at a time: wait until the status says
runningorfailedbefore you update again. - A failed change can be tried again: while the status says
failed, the block says “The last change to its pods failed (see the steps above).” and offers Try the update again, which applies control’s images again and waits once more. - When only control’s address changed, the block says “Control’s address for rigs changed: …” and offers Give it control’s new address. A rig set up by an older version of control shows this button only after its next update; until then, use
update_rig_imagesover MCP (below).
For the steps, what changes and what to check afterwards, see Move a rig onto new images, Try again after a failure and When only control’s address changed.
Change the rig’s GPUs, CPUs and memory
Section titled “Change the rig’s GPUs, CPUs and memory”When the rig’s place gains room, such as a fourth GPU and a larger quota in its slot, the rig can take it as it is: its volume, tokens, runs and results stay. Control applies the rig’s two deployments again with the new size, on the images the rig runs, as an image update does.
Before you start:
- The place allows the new size. In a slot, control reads the slot’s quota again when you save, if its role may read it (What a slot needs), and refuses a size above it. Through the device plugin, a node must offer that many GPUs, as control last read the nodes. Where control can read neither, the cluster’s own rules decide: the pods then wait as
Pending(see If it doesn’t report). - The rig keeps its kind. A rig on GPUs keeps at least one, and a rig on the CPU takes none: its harness image and its target would change, and its runs’ timings would no longer compare. Add a new rig for that.
- Control’s address for rigs is set (
THERMITE_CONTROL_PUBLIC_URL), as for an image update. - The rig is not starting, being updated or draining for an image update.
Steps:
-
On the rig’s page, press Edit rig. Under 4 · Where it runs, a rig control set up on a cluster has these fields, each with an “i” that says what it means:
- GPUs (a rig on GPUs only): how many GPUs the harness pod asks for, 1 to 16, through the rig’s own way: NVIDIA’s device plugin or its DRA device class.
- CPUs and Memory (GiB): both, or both empty for the namespace’s defaults. The supervisor takes a quarter of the CPUs (at least half a CPU, at most 2) and 4 GiB while the rig’s agent programs run in their own terminals, or half a CPU and 2 GiB headless, and the harness the rest: so at least 1.5 CPUs and 8 GiB, or 6 GiB headless (The supervisor’s share). The “i” of Memory (GiB) gives the numbers for how the rig runs now.
Under them, a line says what the place allows, as control last read it, such as
The slot's quota allows 16 CPUs, 52 GiB of memory and 4 GPUs, as control last read it. Save reads it again first. -
Change the values. With a new number of GPUs, GPUs for the judge (on a rig with two or more GPUs) is the judge’s share of the new ones. The box What changes when you save lists each change, the new split, such as
The judge gets 2 of the 4 GPUs, the agents 2., and that the rig’s pods restart. -
Press Save changes. The rig’s page says, for example,
rig-1's pods restart with 4 GPUs (2 for the judge, 2 for the agents), 16 CPUs and 52 GiB of memory.The block’s status saysupdating, and a new step reads “Its deployments applied with new GPUs, CPUs or memory”, with what changed:GPUs 3 → 4 (2 for the judge, 2 for the agents); CPUs and memory: namespace defaults → 16 CPUs, 52 GiB. -
Wait on the page: the block shows each step as it comes. Control waits up to 15 minutes for the new pods, then up to 10 minutes for a report from them. The steps “Its pods run with the new GPUs, CPUs or memory” and “A report reached control after the change” get a ✓, and the status says
running.
A rig at work drains first, as for new images: the page says rig-1 drains first: it starts nothing new, and its pods restart with 4 GPUs (2 for the judge, 2 for the agents), 16 CPUs and 52 GiB of memory once 1 trial finishes. …, the status says draining, and the block says “Draining before its pods restart with …” and what it waits for. Change now, without waiting restarts its pods at once; Call the change off ends the drain, and the rig goes back to work as it was. Control makes the change once the rig reports that nothing runs. While the rig drains for a new size, an image update is refused, and the other way round.
What changes and what stays:
| Changes | Stays |
|---|---|
| The GPUs, CPUs and memory of the rig’s pods, and the split of its GPUs | Its secret, so its tokens and control’s public key |
| With DRA and a new number of GPUs, its resource claim template: deleted, then made again with the new number | Its volume, so its ledger, runs, results and signing key |
The supervisor’s address for control, written again from THERMITE_CONTROL_PUBLIC_URL | Its images, its service, its network rules, its node and its storage |
- The judge’s share. With a new number of GPUs and no share given, the judge gets half of them, rounded up, as when a rig is added. A share the rig kept from GPUs for the judge would come first in its harness, so control also sends the rig the new share (
rig_settings), and the step ends with, for example,the judge's share it kept, 1, → 2. With the same number of GPUs, the split stays as it is: change it with GPUs for the judge alone, which restarts only the harness (Give a rig several GPUs). - A stopped rig stays stopped. The page says
rig-1 has 4 GPUs (2 for the judge, 2 for the agents), 16 CPUs and 52 GiB of memory when it starts again., the step ends with “at its next start”, and Start its pods starts it with the new size. - A refusal changes nothing. The page shows a card that starts with Not done., such as
Not saved: The slot thermite-slot-1 allows 4 GPUs.,Not saved: The slot thermite-slot-1 allows 16 CPUs.,Not saved: a rig needs at least 1.5 CPUs and 8 GiB of memory while its agent programs run in their own terminals: …(… 6 GiB of memoryheadless),Not saved: No node of cluster-1 offers 9 GPUs through the device plugin.,Not saved: rig-1 measures on GPUs, and can't move to none: …orNot saved: rig-1 is being updated: wait until its page shows it running, or failed. - The same values change nothing: the page says
Nothing changed.
After a new number of GPUs, run the rig’s Isolation and Judge smoke checks (Check a rig).
The supervisor’s share
Section titled “The supervisor’s share”The rig’s CPUs and memory are its whole size. Control gives the supervisor its share and the harness the rest, and asks Kubernetes for exactly that: each pod’s requests equal its limits. The supervisor’s share follows how the rig’s agent programs run, Agent programs run under Advanced on Edit rig (program_mode in rig_settings). The advisors (the teachers, the auditor and the review panel’s reviewers) run in the supervisor, and in their own terminals each takes about 550 MiB in Claude Code’s, with two teachers and three reviewers at once (The advisors in their terminals). Their programs start at once too, so in their own terminals the supervisor also gets a quarter of the rig’s CPUs, at least half a CPU and at most 2: on half a CPU, two teachers starting together missed their terminals’ waits.
| Agent programs run | Supervisor | Harness | Least size of the rig |
|---|---|---|---|
| In their own terminal, the default and every new rig’s | A quarter of the CPUs (at least half a CPU, at most 2) and 4 GiB | The rest, at least 1 CPU and 4 GiB | 1.5 CPUs and 8 GiB |
| Headless | Half a CPU and 2 GiB | The rest, at least 1 CPU and 4 GiB | 1.5 CPUs and 6 GiB |
For example, a rig of 16 CPUs and 52 GiB gives its supervisor 2 CPUs and 4 GiB in their own terminals, and its harness 14 CPUs and 48 GiB; a rig of 6 CPUs gives its supervisor 1.5 CPUs and its harness 4.5. Headless, the supervisor of the rig of 16 CPUs gets half a CPU and 2 GiB, and its harness 15.5 CPUs and 50 GiB. Control reads the mode from the rig’s last report each time it writes the rig’s deployments: when it adds the rig, changes its size or updates its images. A rig that has not reported yet, such as a new one, runs in their own terminals; a harness older than the setting runs headless. On the namespace’s defaults, control sets no share.
A new mode changes the size too. On a rig with its CPUs and memory set, another Agent programs run from Edit rig, set_rig_settings over MCP or POST /v1/rigs/<rig>/settings moves the supervisor’s share as a change of size does. Control checks the size first, then sends the setting, then applies the rig’s two deployments again; a rig at work drains first, as above. What changes when you save says that the rig’s pods restart. The page says, for example, Control sent 1 setting to rig-1. The rig takes the change in less than one minute. Its supervisor gets 2 GiB, as its agent programs run headless: rig-1's pods restart with 16 CPUs and 52 GiB of memory., and the step reads its supervisor's memory: 4 → 2 GiB, as its agent programs run headless.
- Too little memory for the terminals is refused, and nothing is sent:
Not saved: a rig needs at least 1.5 CPUs and 8 GiB of memory while its agent programs run in their own terminals: its supervisor takes 4 GiB for the advisors' terminals, and its harness at least 4 GiB. Give the rig more memory first, or keep it Headless. The same words refuse a new rig in a slot whose quota allows less than 8 GiB, and a new size, even of GPUs alone, of a rig whose memory is too little for how it runs now. - An image update gives the supervisor the share for the mode the rig reports then, and refuses before it drains when the rig is too small for it:
rig-1 has 2 CPUs, 6 GiB, and a rig needs at least 1.5 CPUs and 8 GiB of memory while its agent programs run in their own terminals: …. - A new mode while the rig drains for a new size is refused, so that the change it waits for is not lost:
Not saved: rig-1 is draining for a change to its GPUs, CPUs or memory, and a new way for its agent programs to run moves its supervisor's memory: …. Wait until it runs, or call the change off. - A rig set up before the share followed the mode keeps its supervisor’s 2 GiB until its next change of size or image update.
Only a rig on a cluster has this share. The local stack and other compose rigs, a rig on a machine over SSH and a rig on RunPod (one container) set no memory limit on the supervisor: it takes what the machine or the pod has.
From an agent or a script
Section titled “From an agent or a script”Over MCP, the owner’s and the operator’s tokens have five tools for clusters (see MCP tools):
-
add_cluster_rigadds a rig on a cluster in Settings › Machines, with the same checks as Add a rig. Its fields arerig,cluster,slot,gpus,judge_gpus,gpu_mode(device-pluginordra:<device class>),node,storage_class,storage_gb,cpusandmemory_gib. It answers with the rig’s name and"status": "deploying"; follow the rig withrig_setupandlist_rigs. -
set_cluster_slotsreplaces the list of slots of a cluster that uses slots. A slot that holds a rig must stay in the list. -
cluster_rigstops, starts or restarts a rig, as the buttons on its page do. Its fields arerigandaction:stop,startorrestart. Its answer’ssaidisStopped.,Started.orRestarted.After a start or a restart, follow the rig withrig_setup: it saysstarting, thenrunningonce the pods run and the rig reports, orfailed. Removing a rig is done on the dashboard. -
update_rig_imagesmoves a rig onto control’s images, as Update to these images, Try the update again and Give it control’s new address do. Its fields arerigandwait: by default it drains a rig at work first;"wait": falserestarts its pods now, also during a drain. Its answer’ssaidis one of:rig-1 drains first: it starts nothing new, and its pods restart on the new images once 2 trials and the judge's job finish. …;rig-1 is draining: …, while a drain is under way;rig-1's pods restart on the new images.;rig-1 runs the new images when it starts again.(a stopped rig);rig-1's pods restart with control's new address., when only control’s address for rigs changed;rig-1 gets control's new address when it starts again.(a stopped rig);rig-1's pods restart on control's images again (a retry)., when it tries a failed change again on the same images;rig-1 already runs control's images.: the images and control’s address are the same as the rig’s.
An update while the rig is
updatingorstartingis refused, and so is one without control’s address for rigs, with the same reasons as on the page. When control can’t read the rig’s supervisor deployment to compare the address, the tool answers with an error:Control could not read rig-1's deployment to compare control's address:and kubectl’s error, orkubectl's answer is not a deploymentwhen kubectl printed something else. -
set_cluster_rig_resourceschanges a rig’s GPUs, CPUs and memory, as Edit rig does (above), with the supervisor’s share for how the rig’s agent programs run (The supervisor’s share). Its fields arerig,gpus,judge_gpus,cpus,memory_gibandwait; give only what changes, andnullfor bothcpusandmemory_gibfor the namespace’s defaults. For example{"rig": "rig-1", "gpus": 4, "cpus": 16, "memory_gib": 52}answersrig-1's pods restart with 4 GPUs (2 for the judge, 2 for the agents), 16 CPUs and 52 GiB of memory.It drains a rig at work first, asupdate_rig_imagesdoes;"wait": falserestarts its pods now. An operator’s token may change the GPUs, CPUs and memory;judge_gpusis the owner’s alone, and a call with it from another token is refused, with nothing changed:Only the owner's token changes a rig's GPU split: leave out judge_gpus. …
rig_setup (field rig) shows a rig that control set up: the cluster, the namespace, the placement, the rig’s status there, its images, its gpus, judge_gpus, cpus and memory_gib (null for the namespace’s defaults), the change it drains for in pending (null when none), and each step, oldest first. A step is {at, step, ok, detail}, with the step’s id rather than the page’s words, such as applied, first_report, drain (while an update or a change of size waits for the rig’s work), images, images_running and report_after_images for an update, resources, resources_running and report_after_resources for a change of GPUs, CPUs or memory, or pods_running and report_after_start for a start or a restart. A failed step has "ok": false and the reason in detail. Use it to follow a new rig, a start or an update. It is for those who run control: the agent token doesn’t have it, and a reader’s token gets each step with detail set to null.
Once the rig shows on Rigs, set_rig_model gives its agents a model from Providers, and set_rig_settings sets the rest of Edit rig (with the owner’s token, also its promotion rule and GPU split), as the page does. A new program_mode there moves the supervisor’s share of a rig with its CPUs and memory set, and its said says so (The supervisor’s share). Adding the cluster itself is done on the dashboard.