Scale and verify an installation¶
What you will end up with¶
An installation at the node count you want, with each node confirmed enrolled and its enrollment sequence readable.
Prerequisites¶
- An applied installation.
kubectlpointed at the cluster.
1. Read the current state¶
Pods are named by ordinal, and those names are the node labels:
2. Scale¶
--dp-count is accepted on apply, so an existing bundle scales without
regenerating:
This mints an invitation for the new label, injects the updated secret, and scales the StatefulSet:
Scaling down retains the volumes, so a node scaled away keeps its identity and returns as itself when scaled back. See Durable runtime state.
3. Watch the new node come up¶
The init container runs first, exchanging the invitation and writing the seed:
Then xratud starts:
4. Read the enrollment sequence¶
The order is the same for every node:
flowchart LR
S["Secret mounted<br/>its own .token"] --> I["Init container<br/>exchange"]
I --> SD["Seed written<br/>/var/lib/xratu/identity"]
SD --> D["xratud starts"]
D --> R["Registers, heartbeats"]
R --> A["Enrollment active"]
| Stage | Confirm with |
|---|---|
| Invitation present | kubectl -n ${DP_INSTALL} get secret ${DP_INSTALL}-enrollment-invitations -o jsonpath='{.data}' \| tr ',' '\n' |
| Exchange completed | Init container logs |
| Seed written | kubectl -n ${DP_INSTALL} exec dp-eu-west1-2 -c xratud -- ls /var/lib/xratu/identity |
| Node enrolled | xratu get dataplanes |
| Node healthy | kubectl -n ${DP_INSTALL} get pods shows Running and ready |
5. Verify the node in detail¶
From on the node itself, the lifecycle view reads the local seed:
See Manage an enrollment over its life.
6. Confirm the node can be placed on¶
A healthy enrolled node is still not a placement candidate unless it reports an approved project runtime namespace:
An empty list here is the most common reason a node runs cleanly and is never selected. Add the namespaces to the spec, re-prepare and re-apply. See Two ways to drive install.
If it fails¶
| Symptom | Cause | Fix |
|---|---|---|
The new pod stays in Init |
The init container is waiting on the control plane | It waits up to 900 seconds; check the endpoint is reachable from the cluster |
409 tenancy policy active dataplane quota exceeded |
dp_count exceeds max_active_dataplanes_per_tenant |
See Tenant-scoped bootstrap authority |
The pod runs but the node is absent from get dataplanes |
The exchange was refused | See Diagnosing a node that will not enroll |
| A scaled-down node returns as a new node | Its volume was deleted | Retire the previous enrollment, then let it enrol fresh |
| Pods ready but nothing is placed on them | No approved project runtime namespace | Step 6 |
What changed¶
| Object | State |
|---|---|
| StatefulSet | Scaled to dp_count |
| Enrollment secret | Rewritten with a code per current node label |
| Control plane | One enrollment per node, scheduler capability refreshed by heartbeat |
| Volumes | One per node, retained across scale and delete |