Skip to content

ADR 007

Run Talos as three hyperconverged nodes on three hosts

Production runs three Talos control-plane nodes on three Proxmox hosts. Workloads, Longhorn and etcd share them, so one host can fail without manual work.

Status
Accepted
Rollout
0 of 8 gates
Related

Accepted, not yet implemented.

Context

The production Talos cluster must keep etcd quorum and workload capacity after one Proxmox host fails, without manual work. More control-plane members do not improve this target. Four members still need three votes, while three members need two.

Separate worker and control-plane VMs double the number of nodes to upgrade, patch, and size, and they put two VMs on some hosts. For one operator, fewer nodes cost less to maintain.

The five Proxmox hosts share the Layer 2 network used by the Kubernetes API.

Decision

Production nodes

Run three production Talos VMs on three different Proxmox hosts. Each VM is a control-plane node with allowSchedulingOnControlPlanes: true and a dedicated Longhorn data disk. Workloads, Longhorn, and etcd share the three nodes. Add dedicated workers only when CPU or memory runs short.

Label every node with its physical Proxmox host so that Kubernetes and Longhorn can spread replicas across hosts.

Capacity

Each production node has 22 GiB of memory and 8 vCPU. In November 2026 the k3s pods requested 35 GiB and used 27, and two 22 GiB nodes offer about 41 GiB while one host is down. Raise the size after k3s retires if measured use calls for it.

Keep at least a third of each node's CPU and memory free, so two nodes can carry the load while one host is down. Measure the real load, then add margin for Longhorn rebuild traffic.

Production starts on PVE, PVE4 and PVE5, the three hosts with room for a node while k3s still runs. After k3s retires, move the PVE5 node to PVE3, which has the fastest processor and the most free memory. PVE5 has the slowest processor and half the threads, and it then holds staging and temporary clusters.

Size the guests on a Proxmox host against this rule: host memory, minus every running guest at its configured size, minus 4 GiB for the ZFS cache, minus 3 GiB for the host. Cap the ZFS cache at 4 GiB on every host that runs a production node.

Disks and DNS

A node's system disk and Longhorn disk share one datastore on its host. Alert on disk usage for the Talos system disks, the Longhorn data disks and the VM datastore on each host, because a full disk or datastore can stop a control-plane node. Alert on SMART wear for the host disks.

Talos nodes resolve DNS through servers that run outside their own cluster. A cluster that hosts its own resolver can fail to start cold. Which servers those are is open until the owner decides where the BIND primary moves.

Controllers

Run two replicas of each of these controllers, spread across nodes, each with a PodDisruptionBudget:

  • The Cilium operator.
  • The Longhorn CSI controllers.
  • CoreDNS.
  • Traefik.
  • The cert-manager webhooks.
  • External Secrets.

Ingress addresses

The Cilium L2 announcement policy selects all three nodes, not one. Traefik uses externalTrafficPolicy: Cluster. Cilium documents Local as incompatible with L2 announcements.

Control-plane access

Use a Talos Layer 2 virtual IP as the Kubernetes API endpoint. Reserve the address outside DHCP and configure it only on control-plane nodes.

Configure talosctl with all three control-plane node addresses as direct endpoints. Do not use the virtual IP as a Talos management endpoint, because the virtual IP depends on etcd quorum.

Change one control-plane member at a time. Wait for etcd health and matching membership before the next change. ADR 002 sets the apply mode that keeps a configuration change from rebooting every node at once.

Staging

Staging is one node and does not test this topology. ADR 002 records where the three-node tests run.

Implementation status

Production does not exist yet. Staging has one control-plane node and one worker. Talos nodes resolve only through the BIND server on k3s (terraform/main.tf:142). No disk alert exists. The L2 announcement policy selects only talos-test-worker-01 (kubernetes/infrastructure/staging/network/ingress-address.yaml). Staging Traefik uses Cluster, but the shared values still say Local (kubernetes/infrastructure/controllers/traefik/release.yaml:78). Terraform still allows Longhorn only on workers (terraform/variables_talos.tf:56 and terraform/modules/talos_vms/variables.tf:134).

Consequences

The cluster survives one Proxmox host failure. etcd loses quorum after two of the three hosts fail.

Workloads share nodes with etcd and the API server. A workload that exhausts a node's CPU or memory can slow the control plane, so requests, limits, and the capacity margin matter more than with dedicated workers.

A shared switch, power source, or datastore remains a shared failure point even when VMs use separate hosts. The five hosts share one UPS and one switch. The owner accepted that on 2026-11-21, so the cluster is tested for a cold start and gets no second UPS or switch.

Each host keeps its VM disks on a single drive. Two Longhorn replicas on different hosts cover the loss of one. A failed host boot disk costs a host reinstall and no cluster data.

The API virtual IP avoids another load-balancer service. A sudden control-plane loss can interrupt API access while the virtual IP moves.

Cilium holds each L2 announcement with a Kubernetes lease. A lease can't renew while etcd has no quorum, so expect ingress to stop along with the API.

With externalTrafficPolicy: Cluster, traffic that arrives on a node without a Traefik pod can reach Traefik with a node address instead of the client address.

References

Rollout gates

  • The controllers above run two replicas with PodDisruptionBudgets on production. open
  • The L2 policy selects all three nodes, and Traefik uses Cluster in every environment. open
  • On production, before it holds data, a host failure leaves workloads running without manual work. The API address answers again within about a minute and ingress within 20 seconds. open
  • A cold start of all three nodes after a power cut recovers without manual work. open
  • A node replaced onto a different Proxmox host ends with every Longhorn volume healthy. open
  • Node DNS resolvers run outside the cluster. open
  • Alerts exist for disk usage and disk wear, and one has fired in a test. open
  • Production runs on three hosts with the capacity margin measured. open

docs/decisions/007-talos-production-topology.md