Skip to content

dp_install

dp_install is the name of one installation. It is the canonical identity the contract derives every other name from, which is why it is a positional argument on all three install commands rather than a flag.

xratu dataplane install prepare acme edge-eu dp-eu-west1

What it derives

Derived name Default Override
namespace dp_install --runtime-namespace
statefulset_name dp_install Install spec
service_name statefulset_name Install spec
enrollment_secret_name <statefulset_name>-enrollment-invitations Install spec
node_label_prefix statefulset_name Derived only

For dp-eu-west1 that produces a namespace dp-eu-west1, a StatefulSet dp-eu-west1, a headless Service dp-eu-west1, a secret dp-eu-west1-enrollment-invitations, and pods dp-eu-west1-0, dp-eu-west1-1, and so on:

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: dp-eu-west1
  namespace: dp-eu-west1
spec:
  serviceName: dp-eu-west1

Those pod names are the node labels. The invitation set minted at apply is bound to exactly those labels, which is how each pod finds its own code. See Minted and injected material.

It is an identity, not an ordinal

dp_install names an installation, and dp_count sets how many nodes that installation runs. Two nodes in one installation share a dp_install and differ by ordinal:

dp-eu-west1        one installation
  dp-eu-west1-0    node
  dp-eu-west1-1    node

Several installations means several dp_install values, each with its own bundle:

xratu dataplane install prepare acme edge-eu dp-eu-west1 --output-dir install-eu
xratu dataplane install prepare acme edge-us dp-us-east1 --output-dir install-us

Use a second dp_install when the nodes differ in a way one installation cannot express: a different cloud, a different region, a different pool, or different provider configuration. Use dp_count when they are the same node repeated. See dp_count.

Naming rules

dp_install is normalised to an RFC1123 lowercase Kubernetes name. Characters outside [a-z0-9-] are replaced with hyphens, runs of hyphens are collapsed, and leading and trailing hyphens are trimmed.

dp_install must be RFC1123 lowercase

Every derived name inherits the same rule, so a dp_install that normalises cleanly gives you a namespace, StatefulSet, Service and secret that are all valid without further thought.

Names that read well as a namespace work best, because that is where you will see them most: dp-eu-west1, dp-gpu-a100, dp-batch.

Where it appears afterwards

Surface Form
The bundle directory install/dp-eu-west1/
Cluster objects Namespace, StatefulSet, Service, Secret, Role, RoleBinding
Cloud identities dp-eu-west1-runtime, dp-eu-west1-build, dp-eu-west1-build-publish
Node labels dp-eu-west1-0, dp-eu-west1-1
Enrollment records The node label on each enrollment

One name chosen once, visible from the cloud IAM console through to an enrollment record. It is fixed for the life of the installation, because changing it would rename every one of those.