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.
At a glance
Section titled “At a glance”- 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.
How it connects
Section titled “How it connects”- The controller renders the config for the Talos version that the machine runs.
status.renderedForshows that version. - It writes the config to a Secret named after the node and the digest, for example
machineconfig-node-1-0123456789ab. - The Secret never changes. A new config gets a new Secret, so an approved operation always applies the bytes that a person saw.
- A BootAsset builds the boot media from the Secret.
- After the install, the controller checks in with the machine through the Talos API.
- 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.
Removal
Section titled “Removal”When you delete a TalosNode, a finalizer holds it until no part of the node stays in its cluster:
- no claim records an install of it,
- no unfinished operation acts on it,
- for a control plane of a running cluster, etcd lists no member with its name.
While it waits, RemovalBlocked tells why, for example EtcdMemberRemains.
| Field | Type | Description |
|---|---|---|
address | string | Address 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. |
clusterRefrequired | object | ClusterRef names the TalosCluster this node is a member of. |
namerequired | string | The name of the object. |
installDiskSelectorrequired | object | InstallDiskSelector 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.
|
busPath | string | BusPath matches the disk's bus path. It changes when a disk moves to another slot. |
match | string | Match is a CEL expression over `disk` (Talos' disk locator environment), for example `disk.size > 100u * GB && !disk.rotational`. |
model | string | Model matches the disk model. Machines often have several disks of the same model; combine it with another matcher. |
serial | string | Serial matches the disk serial number. It names one disk and does not change when disks are re-cabled or found in another order. |
wwid | string | WWID matches the disk's world wide identifier. |
labels | map[string]string | Labels are Kubernetes node labels the kubelet registers with. Worker nodes may only set labels the NodeRestriction admission plugin allows. |
network | object | Network configures the node's links. |
links | []object | Links configure physical links, each selected by its MAC address.
|
addresses | []string | Addresses are static addresses in CIDR form, primary family first. |
dhcp | boolean | DHCP runs a DHCPv4 client on the link, alongside any static addresses. |
hardwareAddrrequired | string | HardwareAddr 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. |
mtu | integer (int32) | MTU overrides the link MTU. |
namerequired | string | Name is the alias the link gets. Avoid kernel names (eth0, enp0s2): an alias must not collide with a real interface. |
routes | []object | Routes are static routes over this link. |
gateway | string | Gateway is the next hop. |
metric | integer (int32) | Metric orders competing routes. |
network | string | Network is the destination CIDR; empty is the default route. |
patches | []object | Patches apply to this node only, in order, after the cluster's patches.
|
configMapRef | object | ConfigMapRef reads the patch from a ConfigMap key. The ConfigMap must have the label os.platform-kit.org/patch; the operator reads no other. |
keyrequired | string | The key in the object's data. |
namerequired | string | The name of the object. |
namespacerequired | string | The namespace of the object. |
inline | string | Inline is the patch text. |
rolerequired | string | Role is controlplane or worker.controlplaneworker |
schematic | object | Schematic 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. |
customization | object | SchematicCustomization holds the image customization knobs. |
extraKernelArgs | []string | ExtraKernelArgs 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. |
systemExtensions | object | SystemExtensions bakes extensions into the image. |
officialExtensions | []string | OfficialExtensions are siderolabs/* extension names (siderolabs/drbd). |
taints | []object | Taints are Kubernetes node taints the kubelet registers with. |
effectrequired | string | TaintEffect is a Kubernetes taint effect.NoSchedulePreferNoScheduleNoExecute |
keyrequired | string | |
value | string |
Status
Section titled “Status”| Field | Type | Description |
|---|---|---|
address | string | Address is where the check-in dials (spec.address, or the first static link address). |
appliedConfigDigest | string | AppliedConfigDigest 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 | []object | Conditions: 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). |
configDigest | string | ConfigDigest is sha256:<hex> of the rendered config, what BootAsset builds key their rebuilds on. |
configSecretRef | object | ConfigSecretRef 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. |
namerequired | string | The name of the object. |
namespacerequired | string | The namespace of the object. |
drift | object | Drift is the last dry run of the rendered config against the machine (ConfigInSync tells the verdict). |
changedrequired | boolean | Changed: the machine runs a config that differs from this render. |
configDigestrequired | string | ConfigDigest is the rendered config the dry run was made with. |
observedAtrequired | string (date-time) | ObservedAt is when the dry run was made. |
rebootRequired | boolean | RebootRequired: the machine said it needs a reboot to take it. |
summary | string | Summary counts the changed lines and names the configuration keys they touch. Values are left out: a diff of a machine config carries secrets. |
installerImage | string | InstallerImage is the installer the rendered config installs from. |
renderedFor | string | RenderedFor 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. |
stage | string | Stage is the machine's observed boot stage (maintenance, booting, installing, running, ...), empty while no machine answers. |
version | string | Version is the Talos version the machine reports. |
Columns of kubectl get talosnodes (the columns marked wide show only with -o wide):
| Column | Value |
|---|---|
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 |
Conditions
Section titled “Conditions”| 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. |
Example
Section titled “Example”apiVersion: os.platform-kit.org/v1alpha1kind: TalosNodemetadata: name: node-1spec: 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