Skip to content

Kind · os.platform-kit.org/v1alpha1

TalosNode

A TalosNode is one member of a TalosCluster: the part of the config that belongs to one machine. The operator renders its machine config and checks in with the machine that runs it.

Group and version
os.platform-kit.org/v1alpha1
Scope
Cluster. The host name of the node is metadata.name.
Written by
You write the spec. The operator writes the status.
Reconciled by
TalosNode controller. A second controller keeps a finalizer until the node is out of its cluster.
Run by
A Host, when a HostClaim names the node.
Conditions
Rendered, MachineReachable, Ready, ConfigInSync, VersionCurrent, RemovalBlocked.
Talos rendering. The TalosCluster, the TalosNode and the secrets bundle go into the render. The result is a content-addressed config Secret. A BootAsset, the check-in and day-2 operations use it.TalosClustershared settingsTalosNodeone machineSecrets bundlespec.secretsRefRenderfor the node's versionConfig Secretmachineconfig-<node>-<digest>BootAssetconfigISOMachinecheck-in, dry runHostOperationtalosApplyConfig
One render for each node. A new config gets a new Secret. The operator never changes a config Secret.
  1. The controller renders the config for the Talos version that the machine runs. status.renderedFor shows that version.
  2. It writes the config to a Secret named after the node and the digest, for example machineconfig-node-1-0123456789ab.
  3. The Secret never changes. A new config gets a new Secret, so an approved operation always applies the bytes that a person saw.
  4. A BootAsset builds the boot media from the Secret.
  5. After the install, the controller checks in with the machine through the Talos API.
  6. Every 10 minutes, and every 30 seconds during a rollout, it asks the machine for a dry run of the config.

If an input is broken, Rendered=False and the last good Secret stays. A broken input never removes the config of a machine.

The dry run changes nothing. Its result is ConfigInSync:

Status Reason Meaning
True InSync The machine runs the rendered config.
False ConfigDrift The machine differs. status.drift gives the number of lines and the keys, never the values.
Unknown DriftUnknown The dry run failed. The message tells why.

A drifted node makes the Rollout proposer propose a Config TalosRollout. That is how your edit reaches the machine, and how the operator reverts a change that a person made with talosctl.

When you delete a TalosNode, a finalizer holds it until no part of the node stays in its cluster:

While it waits, RemovalBlocked tells why, for example EtcdMemberRemains.

FieldTypeDescription
addressstringAddress is where the operator and talosctl reach the node's Talos API. Empty means the first static address of the first link. A node that only takes DHCP addresses needs it set, or its check-in has nothing to dial.
clusterRefrequiredobjectClusterRef names the TalosCluster this node is a member of.
namerequiredstringThe name of the object.
installDiskSelectorrequiredobjectInstallDiskSelector picks the disk Talos installs onto. That disk is repartitioned and everything on it is erased. A disk matches when every matcher you set holds; if several disks match, Talos takes the first one it finds, which can change between boots. Prefer serial or wwid, which name exactly one disk.
  • Rule: at least one matcher is required: a node that does not say where to install does not install
busPathstringBusPath matches the disk's bus path. It changes when a disk moves to another slot.
matchstringMatch is a CEL expression over `disk` (Talos' disk locator environment), for example `disk.size > 100u * GB && !disk.rotational`.
modelstringModel matches the disk model. Machines often have several disks of the same model; combine it with another matcher.
serialstringSerial matches the disk serial number. It names one disk and does not change when disks are re-cabled or found in another order.
wwidstringWWID matches the disk's world wide identifier.
labelsmap[string]stringLabels are Kubernetes node labels the kubelet registers with. Worker nodes may only set labels the NodeRestriction admission plugin allows.
networkobjectNetwork configures the node's links.
addresses[]stringAddresses are static addresses in CIDR form, primary family first.
dhcpbooleanDHCP runs a DHCPv4 client on the link, alongside any static addresses.
hardwareAddrrequiredstringHardwareAddr is the link's permanent MAC address. A physical link whose driver reports no permanent address is matched on its current one instead. Lower case and colon-separated (0c:c4:7a:12:34:56): Talos compares it as text.Pattern: ^([0-9a-f]{2}:){5}[0-9a-f]{2}$
mtuinteger (int32)MTU overrides the link MTU.Bounds: at least 576
namerequiredstringName is the alias the link gets. Avoid kernel names (eth0, enp0s2): an alias must not collide with a real interface.Pattern: ^[a-z][a-z0-9-]{0,14}$
routes[]objectRoutes are static routes over this link.
gatewaystringGateway is the next hop.
metricinteger (int32)Metric orders competing routes.
networkstringNetwork is the destination CIDR; empty is the default route.
patches[]objectPatches apply to this node only, in order, after the cluster's patches.
  • Rule: exactly one of inline or configMapRef
configMapRefobjectConfigMapRef reads the patch from a ConfigMap key. The ConfigMap must have the label os.platform-kit.org/patch; the operator reads no other.
keyrequiredstringThe key in the object's data.
namerequiredstringThe name of the object.
namespacerequiredstringThe namespace of the object.
inlinestringInline is the patch text.
rolerequiredstringRole is controlplane or worker.controlplaneworker
schematicobjectSchematic customizes this node's installer image and replaces the cluster's schematic when set. Extensions and kernel arguments both live here: Talos takes the installed kernel command line from the image, so an argument that is not part of the schematic does not survive the install.
customizationobjectSchematicCustomization holds the image customization knobs.
extraKernelArgs[]stringExtraKernelArgs append to the image's kernel command line, for example where to put the console (console=ttyS0, what the BMC's serial-over-LAN shows). Do not add talos.config=metal-iso: the operator adds it to the boot medium itself, and the installed system must not carry it.
systemExtensionsobjectSystemExtensions bakes extensions into the image.
officialExtensions[]stringOfficialExtensions are siderolabs/* extension names (siderolabs/drbd).
taints[]objectTaints are Kubernetes node taints the kubelet registers with.
effectrequiredstringTaintEffect is a Kubernetes taint effect.NoSchedulePreferNoScheduleNoExecute
keyrequiredstring
valuestring
FieldTypeDescription
addressstringAddress is where the check-in dials (spec.address, or the first static link address).
appliedConfigDigeststringAppliedConfigDigest is the rendered config the machine was last seen to run: the digest of a render a dry run found no change against. Config Secrets of other digests are collected once nothing refers to them.
conditions[]objectConditions: Rendered, plus the check-in observations MachineReachable and Ready while a Host hands this node a machine, ConfigInSync (the dry-run drift check) and VersionCurrent (Talos version skew).
configDigeststringConfigDigest is sha256:<hex> of the rendered config, what BootAsset builds key their rebuilds on.
configSecretRefobjectConfigSecretRef points at the Secret holding this node's rendered machine config (key config.yaml). Owned by the TalosNode and collected with it; it is the one place the rendered secrets rest.
namerequiredstringThe name of the object.
namespacerequiredstringThe namespace of the object.
driftobjectDrift is the last dry run of the rendered config against the machine (ConfigInSync tells the verdict).
changedrequiredbooleanChanged: the machine runs a config that differs from this render.
configDigestrequiredstringConfigDigest is the rendered config the dry run was made with.
observedAtrequiredstring (date-time)ObservedAt is when the dry run was made.
rebootRequiredbooleanRebootRequired: the machine said it needs a reboot to take it.
summarystringSummary counts the changed lines and names the configuration keys they touch. Values are left out: a diff of a machine config carries secrets.
installerImagestringInstallerImage is the installer the rendered config installs from.
renderedForstringRenderedFor is the Talos version the config was rendered for: the cluster's talosVersion, or the older version the machine still runs until its upgrade, so that a config is never written for a contract the running machine does not accept yet.
stagestringStage is the machine's observed boot stage (maintenance, booting, installing, running, ...), empty while no machine answers.
versionstringVersion is the Talos version the machine reports.

Columns of kubectl get talosnodes (the columns marked wide show only with -o wide):

ColumnValue
NAME.metadata.name
CLUSTER.spec.clusterRef.name
ROLE.spec.role
ADDRESS.status.address
STAGE.status.stage
READY.status.conditions[?(@.type=="Ready")].status
VERSIONwide.status.version
INSYNCwide.status.conditions[?(@.type=="ConfigInSync")].status
Condition True means
Rendered The config Secret is current.
MachineReachable The machine answers on the Talos API (MachineAPI) or in maintenance mode (MaintenanceMode).
Ready The node runs and is ready.
ConfigInSync The machine runs the rendered config.
VersionCurrent The machine runs the Talos version of the cluster. False: VersionSkew.
RemovalBlocked A deletion waits. The reason tells for what.
apiVersion: os.platform-kit.org/v1alpha1
kind: TalosNode
metadata:
name: node-1
spec:
clusterRef:
name: lab
role: controlplane
installDiskSelector:
serial: pklab-disk-1
network:
links:
- name: lan
hardwareAddr: "52:54:00:77:00:11"
addresses: [10.77.0.11/24]
routes:
- gateway: 10.77.0.1