Which Kubernetes distribution and cluster topology? #52

Closed
opened 2026-11-23 16:05:24 -05:00 by bobby · 1 comment
Owner

Part of #44

Question

Which distribution runs the hAPI cluster on Linode, and what is its topology: control-plane count (HA or not), worker count and plans, node OS, CNI, provisioning tool (Terraform/OpenTofu etc.), and use of VPC / Cloud Firewall? Balance learning value against operational burden and small expected load.

Part of #44 ## Question Which distribution runs the hAPI cluster on Linode, and what is its topology: control-plane count (HA or not), worker count and plans, node OS, CNI, provisioning tool (Terraform/OpenTofu etc.), and use of VPC / Cloud Firewall? Balance learning value against operational burden and small expected load.
bobby added the wayfinder:grilling label 2026-11-23 16:05:24 -05:00
bobby added a new dependency 2026-11-23 16:05:34 -05:00
bobby added a new dependency 2026-11-23 16:05:35 -05:00
bobby added a new dependency 2026-11-23 16:05:35 -05:00
bobby added a new dependency 2026-11-23 16:05:35 -05:00
bobby self-assigned this 2026-11-23 22:12:27 -05:00
Author
Owner

Resolution

Decided in a grilling session on 2026-11-23. Recorded as ADR-0003.

Distribution and OS

  • Talos Linux. Uses the official Image Factory akamai image with a schematic that includes the Tailscale system extension, uploaded as a custom image. Nodes boot with the linode/direct-disk kernel. Verify: whether the linode_instance_config kernel attribute can set this from Tofu. If not, it's a manual step per node.
  • A throwaway kubeadm cluster for learning is a personal side exercise and isn't on this map.

Topology and placement

  • Region us-iad (Washington, DC), a core region. The regions API confirms VPCs, Managed Databases, NodeBalancers, Cloud Firewall, Object Storage, Metadata and Placement Groups.
  • 1 control-plane node with no workloads scheduled on it, plus 2 workers, all g6-standard-2 (2 vCPU/4 GB). That's about $72/mo, plus the NodeBalancer.
  • etcd isn't HA. If the control-plane node is lost, workloads keep serving and the control plane is rebuilt from code. Moving to 3 control-plane nodes later is additive.
  • All nodes sit in one anti-affinity (spread) placement group, set to strict if supported.

Management access (follows ADR-0002)

  • There's no NodeBalancer for the API. Every node joins the management tailnet with a pre-signed auth key, which keeps Tailnet Lock on.
  • The cluster endpoint is a stable tailnet DNS name for the control-plane node. apid (:50000) and the k8s API (:6443) are reachable only over the tailnet. Break-glass is LISH.

Networking

  • All nodes are in one VPC subnet. Each node also has a public IPv4, used for outbound traffic and for direct Tailscale connections (this avoids DERP relaying).
  • Node Cloud Firewall, managed by OpenTofu: deny all inbound, except allow UDP 41641 and all traffic from the VPC subnet.
  • Public :443 traffic arrives through a CCM-managed NodeBalancer with VPC backends. That NodeBalancer's firewall is handled in the ingress/TLS/DNS ticket.
  • CNI: Cilium. It replaces kube-proxy, has WireGuard transparent encryption turned on (VPC traffic itself isn't encrypted), and runs in tunnel mode with the CCM route controller off. Whether Cilium is also the Gateway controller is decided in the ingress ticket.

Encryption at rest

  • Talos secretbox encryption of Secrets in etcd (on by default).
  • Talos LUKS on the STATE and EPHEMERAL partitions (nodeID key provider) on every node.
  • Linode Disk Encryption too, if it works with the custom image and direct-disk boot. Verify at build time.

Provisioning

  • OpenTofu with linode/linode and siderolabs/talos, pinned to a stable tag rather than the v0.13.0-alpha line.
  • Remote state goes in a Linode Object Storage S3 backend with OpenTofu client-side state encryption. The state holds the Talos machine secrets and the DB root password.
  • Code lives in infra/.
  • Tofu and Talos install only Cilium (through Talos inlineManifests) and the Linode CCM, since nodes need both to become Ready under --cloud-provider=external. The CSI driver (only for incidental PVCs), the Gateway controller, cert-manager and hAPI arrive through delivery, in How do code changes reach the cluster?

Handed to other tickets

  • How are secrets stored and delivered?: custody of the tailnet auth key, the state-encryption key, and the Linode API token used by the CCM.
  • How does hAPI connect to its managed database?: whether Managed DB VPC attach (beta) can be used in us-iad, and the DB plan.
  • Cluster hardening fog: the Talos/k8s upgrade cadence.

No new glossary terms.

## Resolution Decided in a grilling session on 2026-11-23. Recorded as [ADR-0003](https://git.bobbypalko.com/bobby/hapi/src/branch/main/docs/adr/0003-talos-single-control-plane.md). **Distribution and OS** - **Talos Linux.** Uses the official Image Factory `akamai` image with a schematic that includes the **Tailscale system extension**, uploaded as a custom image. Nodes boot with the `linode/direct-disk` kernel. *Verify:* whether the `linode_instance_config` `kernel` attribute can set this from Tofu. If not, it's a manual step per node. - A throwaway kubeadm cluster for learning is a personal side exercise and isn't on this map. **Topology and placement** - **Region `us-iad` (Washington, DC), a core region.** The regions API confirms VPCs, Managed Databases, NodeBalancers, Cloud Firewall, Object Storage, Metadata and Placement Groups. - **1 control-plane node** with no workloads scheduled on it, plus **2 workers**, all `g6-standard-2` (2 vCPU/4 GB). That's about $72/mo, plus the NodeBalancer. - etcd isn't HA. If the control-plane node is lost, workloads keep serving and the control plane is rebuilt from code. Moving to 3 control-plane nodes later is additive. - All nodes sit in one **anti-affinity (spread) placement group**, set to strict if supported. **Management access** (follows ADR-0002) - There's **no NodeBalancer for the API.** Every node joins the management tailnet with a **pre-signed auth key**, which keeps Tailnet Lock on. - The cluster endpoint is a stable tailnet DNS name for the control-plane node. apid (:50000) and the k8s API (:6443) are reachable only over the tailnet. Break-glass is LISH. **Networking** - All nodes are in one **VPC subnet**. Each node also has a **public IPv4**, used for outbound traffic and for direct Tailscale connections (this avoids DERP relaying). - **Node Cloud Firewall**, managed by OpenTofu: deny all inbound, except allow UDP 41641 and all traffic from the VPC subnet. - Public :443 traffic arrives through a CCM-managed **NodeBalancer with VPC backends**. That NodeBalancer's firewall is handled in the ingress/TLS/DNS ticket. - **CNI: Cilium.** It replaces kube-proxy, has **WireGuard transparent encryption** turned on (VPC traffic itself isn't encrypted), and runs in **tunnel mode** with the CCM route controller off. Whether Cilium is also the Gateway controller is decided in the ingress ticket. **Encryption at rest** - Talos secretbox encryption of Secrets in etcd (on by default). - **Talos LUKS on the STATE and EPHEMERAL partitions** (nodeID key provider) on every node. - Linode Disk Encryption too, if it works with the custom image and `direct-disk` boot. *Verify* at build time. **Provisioning** - **OpenTofu** with `linode/linode` and `siderolabs/talos`, pinned to a stable tag rather than the `v0.13.0-alpha` line. - Remote state goes in a **Linode Object Storage S3 backend** with **OpenTofu client-side state encryption**. The state holds the Talos machine secrets and the DB root password. - Code lives in `infra/`. - **Tofu and Talos install only Cilium (through Talos `inlineManifests`) and the Linode CCM**, since nodes need both to become Ready under `--cloud-provider=external`. The CSI driver (only for incidental PVCs), the Gateway controller, cert-manager and hAPI arrive through delivery, in *How do code changes reach the cluster?* **Handed to other tickets** - *How are secrets stored and delivered?*: custody of the tailnet auth key, the state-encryption key, and the Linode API token used by the CCM. - *How does hAPI connect to its managed database?*: whether Managed DB VPC attach (beta) can be used in `us-iad`, and the DB plan. - Cluster hardening fog: the Talos/k8s upgrade cadence. No new glossary terms.
bobby closed this issue 2026-11-23 22:28:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#52