From 672c46de044ac0574516b296da92973e68b66468 Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 23 Nov 2026 22:28:41 -0500 Subject: [PATCH] new: cluster distribution and topology (ADR-0003) Co-Authored-By: Claude Opus 5.5 --- docs/adr/0003-talos-single-control-plane.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/adr/0003-talos-single-control-plane.md diff --git a/docs/adr/0003-talos-single-control-plane.md b/docs/adr/0003-talos-single-control-plane.md new file mode 100644 index 0000000..ffeaed0 --- /dev/null +++ b/docs/adr/0003-talos-single-control-plane.md @@ -0,0 +1,18 @@ +# Talos on Linode with one control-plane node, Cilium, and OpenTofu + +The hAPI cluster runs **Talos Linux** on Linode compute in `us-iad`: **one control-plane node and two workers**, all `g6-standard-2`, provisioned with **OpenTofu**. Its CNI is **Cilium**, with WireGuard encrypting traffic between nodes. We chose Talos because it is immutable and managed only through an authenticated API, with no shell or SSH. That fits a security-first, one-operator cluster better than RKE2 (CIS-hardened, but a general-purpose OS to patch), k3s (defaults favor convenience) or kubeadm (most learning, weakest defaults). A single control-plane node keeps cost and moving parts proportionate to a small load. Postgres is a managed service outside the cluster, so etcd holds no hAPI data, and the cluster can be rebuilt from code. + +## Considered Options + +- **Three control-plane nodes (HA etcd).** Rejected for v1 as oversized. With dedicated workers it costs about $48/mo more. Running workloads on the control plane instead would mix them with etcd. Moving to three is an additive Talos change. +- **A NodeBalancer in front of the Kubernetes and Talos APIs**, as the Talos Linode guide describes. Rejected: ADR-0002 keeps those APIs off the internet. The cluster endpoint is the control-plane node's tailnet name instead. +- **VPC-only nodes behind a NAT gateway.** Rejected for now: Tailscale would fall back to DERP relays, and the NAT gateway is newer. Nodes have public IPv4 with a firewall that denies all inbound traffic except Tailscale's UDP port. +- **Terraform.** OpenTofu is chosen for its open licence and its client-side state encryption. The state holds Talos machine secrets. + +## Consequences + +- **Losing the control-plane node means rebuilding it from code.** Workloads keep serving in the meantime, but the cluster can't be changed until it is back. +- **No SSH, ever.** All node access goes through `talosctl` over the management tailnet. Break-glass is the Linode LISH console. +- **Every node joins the management tailnet** with a pre-signed auth key, so Tailnet Lock stays on. +- **OpenTofu and Talos install only Cilium and the Linode CCM.** These are what nodes need to become Ready. Everything else arrives through delivery. +- **Disks are encrypted at rest** with Talos LUKS on STATE and EPHEMERAL, in addition to Talos's default encryption of Secrets in etcd.