Concept
Self-protection
After a pivot, the operator runs on machines that it manages. A reboot of such a machine can stop the operator in the middle of an operation. So the operator holds these power actions.
What is held
Section titled “What is held”- A power cycle or power off of the node where the manager pod runs.
- A power cycle or power off of an installed control plane of the cluster of the operator. Installed means that the node answers now, or the claim records the hand-off.
- This covers an install, a release, a BIOS change and the executor itself.
The claim or the operation shows reason SelfDisruption.
- Own node
- The node in the environment variable
NODE_NAMEof the manager pod. The operator matches it to a TalosNode by name or address. - allow-self-disruption
- The Host annotation
metal.platform-kit.org/allow-self-disruption. With it, the operator can take that machine down. The value is<user name>: <reason>. See Named guard lifts.
With the annotation
Section titled “With the annotation”A control plane still goes down only when:
- no other control plane of the cluster reboots, and
- the other control planes keep the etcd majority. The operator asks each of them over the Talos API at that moment. A control plane that does not answer in five seconds counts as down.
In the reference
Section titled “In the reference”- Protection controller
- Cluster guard: the same idea for each cluster