Skip to content

Concept

Maintenance windows

A person still approves each change. A MaintenanceWindow decides only when an approved change starts.

A week from Monday to Sunday. The window opens Saturday 22:00 for six hours. An operation approved on Wednesday waits until Saturday 22:00. A step that runs when the window closes finishes.MonTueWedThuFriSatSunopen 22:00, 6happrovedOutsideMaintenanceWindowstarts by itself
Approved on Wednesday, started on Saturday night.
Covered machine
A machine that spec.hostSelector or spec.clusters selects. Either match is enough.
Open
The time inside a weekly or a one-time window, in spec.timeZone. Weekly windows keep the wall clock time across a daylight saving change.
ignore-window
The operation annotation metal.platform-kit.org/ignore-window. Its value is your username and your reason, for example alice: CVE fix. The operation then starts outside the windows. An empty value does not count.
  1. An approved operation on a covered machine waits until one of its windows is open.
  2. When a window opens, the waiting operations start. Nobody has to be awake.
  3. A step that runs is never stopped when the window closes.
  4. A machine that no window covers is not held.
  5. New installs (reason Provisioning) are not held.
  6. A window that the operator cannot read is Valid=False and never opens. A mistake holds work back.
  7. A rollout that reaches a node outside its windows waits between nodes.
  • blockedOn: OutsideMaintenanceWindow in pk-metal status. It does not count as "needs a person".
  • kubectl get maintenancewindows shows OPEN and NEXT CHANGE.
  • The metric pk_metal_operation_blocked{reason="OutsideMaintenanceWindow"}.