Skip to content

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.
  • kubectl pointed at the cluster.
export ORG=acme
export POOL=edge-eu
export DP_INSTALL=dp-eu-west1

1. Read the current state

xratu get dataplanes
kubectl -n ${DP_INSTALL} get statefulset ${DP_INSTALL}
kubectl -n ${DP_INSTALL} get pods

Pods are named by ordinal, and those names are the node labels:

dp-eu-west1-0   2/2   Running
dp-eu-west1-1   2/2   Running

2. Scale

--dp-count is accepted on apply, so an existing bundle scales without regenerating:

xratu dataplane install apply "${ORG}" "${POOL}" "${DP_INSTALL}" --dp-count 3

This mints an invitation for the new label, injects the updated secret, and scales the StatefulSet:

kubectl -n dp-eu-west1 scale statefulset/dp-eu-west1 --replicas=3

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

kubectl -n ${DP_INSTALL} get pods -w

The init container runs first, exchanging the invitation and writing the seed:

kubectl -n ${DP_INSTALL} logs dp-eu-west1-2 -c xratud-enrollment-bootstrap

Then xratud starts:

kubectl -n ${DP_INSTALL} logs dp-eu-west1-2 -c xratud

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

export DP_NODE0="${DP_INSTALL}-0"
xratu describe dataplane ${DP_NODE0}

From on the node itself, the lifecycle view reads the local seed:

kubectl -n ${DP_INSTALL} exec ${DP_NODE0} -c xratud -- xratu dataplane status

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:

grep -A3 scheduler_authority install/${DP_INSTALL}/install.input.yaml

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