Skip to content

Concept

Drift

The operator never changes a config Secret in place. Each new config gets a new Secret, named after the node and the digest of the content. A dry run on each node then tells whether the machine runs the current config.

An edit gives a new Secret with a new digest. The old Secret stays while something refers to it. A dry run compares the new config with the node and sets ConfigInSync. A drift gives a Config rollout.machineconfig-node-1-0123…appliedmachineconfig-node-1-89ab…currentDry runwhat would change?ConfigInSync=TrueInSyncConfigInSync=FalseConfigDrift, status.driftConfig rolloutproposed
A new digest is a new Secret. An approved operation can never apply other bytes.
Content-addressed Secret
A config Secret named machineconfig-<node>-<digest>. Its name changes when its content changes.
Dry run
A question to Talos: what changes if this config is applied? Talos answers and changes nothing.
Drift
The machine does not run the config that the operator renders. status.drift gives the number of lines, the changed keys and whether a reboot is necessary. It never holds values.
Situation Interval
Normal 10 minutes
A rollout runs on the cluster 30 seconds
Status Reason Meaning
True InSync The machine runs what the operator renders.
False ConfigDrift It does not. The operator proposes a Config rollout.
Unknown DriftUnknown The dry run failed. The message says why.

If Talos does not say whether a change needs a reboot, the operator assumes that it does.

  • The current config.
  • The config that the node last applied.
  • Configs that an unfinished operation or rollout names.

The operator deletes the others.