Skip to content

Concept

Architecture

pk-metal is a Kubernetes operator. It runs in a small management cluster. It reads the objects that you write and changes the machines through their BMCs.

The management cluster holds the objects and the manager. The manager reaches the BMCs over HTTPS and the Talos nodes on port 50000. The BMCs get boot media from the media service.management clusterAPI serveryour objects, statusManagercontrollersMedia service--media-url, one-time grantsmachinesTalos nodeTalos API, 50000Machinepower, disksBMCRedfish, HTTPS 443Talos APIRedfishBMC gets mediapower, mediaruns
Who talks to whom. Arrows show who opens the connection.
Management cluster
The Kubernetes cluster that runs the operator. It holds all state as API objects. First a kind cluster, later the Talos cluster that the operator built, see Pivot model.
Manager
The one process that runs all controllers. One replica holds the leader lease.
BMC
The controller on the main board of a machine. The operator uses Redfish to read it, to switch the power and to mount virtual media.
Media service
An HTTPS server in the manager. A BMC downloads the installer and the node configuration from it with a one-time grant.
Talos node
A machine that runs Talos Linux. It has no shell and no SSH. The operator uses the Talos API.
Relay
An optional forwarder for day 0, when your workstation cannot reach the BMCs. See Relay.
Group Kinds About
metal.platform-kit.org Asset, ManagementEndpoint, Host, HostClaim, HostOperation, profiles, MaintenanceWindow Hardware and its changes
os.platform-kit.org TalosCluster, TalosNode, BootAsset, TalosRollout, EtcdBackupPolicy, EtcdSnapshot The installed system
  1. You write what must be true. The operator writes what it finds. See Assert and observe.
  2. A person approves each change to a machine. See Approval.
  3. The operator boots from virtual media, not from PXE. See Virtual media boot.
  4. The operator does not take down the cluster that it runs on. See Self-protection.
Topic Value Source
Manager pod Requests 50m CPU and 128 Mi memory. Memory limit 1 Gi. metal/config/manager/deployment.yaml
Replicas One. The Deployment replaces the pod, it does not roll. The media grants are in the memory of one process.
Leader election On in the Deployment. It stops a second manager that someone starts by accident. It does not make two replicas a supported setup.
Media store A 10 Gi volume, only for BMCs with one media slot. About 400 MiB for each such machine. metal/config/media-store/pvc.yaml
Size of the cluster One node is enough. The lab uses one kind node. No test uses a larger management cluster.
  • The installed nodes and their workloads continue to run. No node needs the manager to stay up.
  • Nothing is proposed, approved operations do not start, and a rollout does not continue.
  • An operation that ran continues with its next step when the manager starts again. Each step first reads the state of the machine.
  • A BMC cannot download media. An install that waits for a download fails or waits.
  • The state is the objects in the management cluster. If you lose that cluster, see Management cluster lost.
Limit Value Can you change it
Operations that the manager works on at the same moment 4. A long step, for example a firmware flash, holds one of the four. No flag
Rollouts on one cluster One at a time No
Control planes in a rollout One at a time, and only while etcd is healthy No
Workers in a rollout spec.maxUnavailableWorkers, default 1 Yes, on the TalosRollout
Read of each BMC Each 5 minutes --poll-interval
Approvals One for each install, one for each rollout plan See Approval

The largest shape in the tests is one cluster of five virtual machines. No test measures a fleet of tens or hundreds of machines. The numbers above are the design. They are not results of a load test. See Project status.