Author SHA1 Message Date
BobbyandClaude Opus 5.5 d867149bb3 Research: self-managed Kubernetes on Linode (#48)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:09:41 -05:00
2 changed files with 163 additions and 262 deletions

No files matched your search

-262
View File
@@ -1,262 +0,0 @@
# How can Home Assistant consume jobs from an external system?
Research for Gitea issue #47 (part of map #44). Researched 2026-11-23 against
current Home Assistant (HA) docs, HA core source (`dev` branch), and RabbitMQ 4.x
docs.
**Question:** What mechanisms does HA offer for receiving or pulling commands
from an external system (hAPI in the cloud)? For each one: which side opens the
connection, how it authenticates, how reliable it is and how results get
acknowledged, and how much maintenance it needs.
## TL;DR
- **HA has no AMQP or RabbitMQ integration.** Neither `/integrations/amqp/` nor
`/integrations/rabbitmq/` exists, and HA core has no such component. HA's
only built-in message-bus client is MQTT.
- **The HA MQTT docs say RabbitMQ's MQTT plugin is not supported:**
"Neither ActiveMQ MQTT broker nor the RabbitMQ MQTT Plugin are supported, use
a known working broker like Mosquitto instead."
([HA MQTT](https://www.home-assistant.io/integrations/mqtt/)). Using RabbitMQ
as the broker would mean running HA on a configuration it does not support.
- **HA's MQTT client always connects with a clean session.** It sets
`clean_start=True` on MQTT 5 and `clean_session=True` on 3.1.1
([core `mqtt/client.py`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/mqtt/client.py)).
So any job published while HA is disconnected is dropped unless it is
retained. A broker cannot queue jobs for HA while it is offline, whichever
broker is used. MQTT QoS 1 only covers delivery on a live connection.
- **None of the built-in options acknowledge at the job level.** For durable
jobs, hAPI has to provide the durability: keep a job table in Postgres, and
have HA report each result back to hAPI, either by calling hAPI or by
returning it on the same call.
- **Candidates by direction of connection:**
- *HA opens the connection* (no inbound path to the home network needed):
MQTT to a broker run by hAPI; REST polling of hAPI plus `rest_command`
callbacks; or a custom integration.
- *hAPI opens the connection* (needs the private link from #46, or Nabu Casa
for webhooks): the WebSocket API, the REST API, or a webhook trigger.
## Mechanism by mechanism
### 1. MQTT integration (HA connects out to a broker)
- **Direction:** HA is the MQTT client. You give it the broker's "hostname
(or IP address) and port"
([HA MQTT](https://www.home-assistant.io/integrations/mqtt/)). If the broker
runs in the cluster, HA connects outbound, so nothing has to accept inbound
connections at home.
- **Protocol:** "Home Assistant requires that your broker supports MQTT protocol
version 5" (same page). Core supports 3.1, 3.1.1, and 5, and defaults to 5
(`DEFAULT_PROTOCOL = PROTOCOL_5` in
[`mqtt/const.py`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/mqtt/const.py)).
- **Auth:** username and password; broker certificate validation (Auto, or
Custom with an uploaded CA); and an optional client certificate plus private
key for mutual TLS. WebSockets transport is also available, with custom
headers. Source: [HA MQTT](https://www.home-assistant.io/integrations/mqtt/).
- **Receiving jobs:** the `mqtt` automation trigger fires "when a message is
received on an MQTT topic". It has a `qos` option (0, 1, or 2; default 0), and
JSON payloads are exposed as `trigger.payload_json`
([MQTT trigger](https://www.home-assistant.io/triggers/mqtt/)).
- **Returning results:** the `mqtt.publish` action, with `retain` and a
templated payload ([HA MQTT](https://www.home-assistant.io/integrations/mqtt/)).
A typical setup has HA publish to `hapi/results/<job_id>` or a single results
topic.
- **Reliability:**
- *Clean sessions.* Session data is cleared on every connect (see TL;DR),
so the broker does not queue jobs for HA across disconnects. A retained
message survives, but the broker keeps only one per topic, which makes it
the wrong tool for a queue.
- *QoS.* QoS 1 gives at-least-once delivery while HA is connected. Duplicates
are possible, so job handlers should be idempotent (key them on `job_id`).
- *No job-level ack.* MQTT has no acknowledgement for "the job ran"; HA has to
publish a result message for that.
- *Liveness.* HA publishes a Birth message (`online`) and a Last Will message
(`offline`) on `homeassistant/status`
([HA MQTT](https://www.home-assistant.io/integrations/mqtt/)). hAPI can
subscribe to know whether HA is connected and hold or fail jobs to match.
- **Maintenance:** low on the HA side, since this is a first-class, actively
maintained integration. On the cluster side, it means running and securing a
broker (for example Mosquitto) with TLS and per-client credentials. The job
automations are YAML or UI automations in HA.
### 1a. RabbitMQ's MQTT plugin as that broker
- **What RabbitMQ supports:** MQTT 3.1, 3.1.1, and 5.0. QoS 0 and 1 are
supported, but QoS 2 is not. An MQTT 5 client that publishes at QoS 2 is
disconnected with "reason code `155: QoS not supported`"; 3.x clients are
downgraded to QoS 1. MQTT topics are routed through the `amq.topic` exchange,
with `/` mapped to `.` and `+` mapped to `*`, so AMQP 0-9-1, AMQP 1.0, and
STOMP clients can talk to MQTT clients. Auth options are username and
password, or x.509 client certificates via `ssl_cert_login`
([RabbitMQ MQTT](https://www.rabbitmq.com/docs/mqtt)).
- **Retained-message caveats:** retained messages are stored node-local and not
replicated, and "subscriptions using wildcard filters receive no retained
messages" (same page).
- **HA's position:** HA marks the plugin as not supported (quoted in the
TL;DR). The HA page gives a reason only for ActiveMQ (retention bugs).
*Inference:* the RabbitMQ wildcard limitation is probably the reason, because
HA's MQTT discovery subscribes with wildcards and depends on retained config
messages. hAPI jobs on fixed topics with no discovery might work, but nobody
would support or test that setup, and the clean-session limit still applies.
- **What RabbitMQ would add:** hAPI could use AMQP queues on the cloud side for
its own durability and routing, bridging to HA over MQTT. That adds little
over a Postgres job table plus Mosquitto, and it costs running RabbitMQ
itself.
### 2. AMQP
- **No built-in integration.** HA's docs have no AMQP or RabbitMQ page (both
URLs return 404), and HA core has no `amqp` or `rabbitmq` component (checked
against the GitHub contents API for `homeassistant/components`).
- **Only route:** a custom integration that embeds an AMQP client (see section
6). The custom integration would own every reliability property: durable
queues, manual acks after the HA action completes, and reconnects.
### 3. REST API (hAPI calls HA)
- **Direction:** inbound to HA at `/api/...`, so it needs the private link
(#46) or some exposure of HA.
- **Auth:** `Authorization: Bearer <long-lived access token>`
([REST API](https://contributors.home-assistant.io/core/internals/rest-api/)).
Long-lived tokens are "valid for 10 years" and act as the user who created
them ([Auth API](https://contributors.home-assistant.io/core/internals/auth-api/)).
The docs describe no way to scope a token, so it should be created for a
dedicated, non-admin HA user. Some endpoints, such as firing events, are
marked Admin.
- **Semantics:** `POST /api/services/<domain>/<service>` "calls an action and
waits until it is done". It returns the changed states, plus a
`service_response` with `?return_response` for actions that produce data. A
failing action returns 500, and every endpoint returns 503 during shutdown.
This makes the call a synchronous request and result, so the HTTP response
serves as the ack. hAPI retries on timeout or 5xx, which means actions must
be idempotent.
- **Maintenance:** none on the HA side. hAPI needs an HTTP client and a token
secret.
### 4. WebSocket API (hAPI holds a socket open to HA)
- **Direction:** inbound to HA at `/api/websocket`
([WebSocket API](https://contributors.home-assistant.io/core/internals/websocket-api/)).
- **Auth:** the server sends `auth_required`, the client replies with `auth`
containing an `access_token`, and the server answers `auth_ok` or
`auth_invalid`. A long-lived token works.
- **Semantics:**
- *Commands.* Each command gets a `result` with the same `id`, carrying
`success` true or false and an `error` with a `code`. `call_service`
accepts `return_response: true`.
- *Subscriptions.* `subscribe_events` and `subscribe_trigger` (Admin) let hAPI
receive HA state changes and events in real time.
- *Liveness.* `ping` and `pong` work as a heartbeat.
- **Reliability:** each request gets a result on a live connection. If the
connection drops, in-flight commands have unknown outcomes and hAPI must
reconcile them.
- **Maintenance:** a long-lived connection with reconnect logic in hAPI (one
pod, or leader election). It is the richest option if hAPI also needs HA state
for the Smart home domain.
### 5. Webhook trigger (hAPI calls HA)
- **Direction:** inbound. `local_only` defaults to true, so only the home
network is accepted. With Home Assistant Cloud (Nabu Casa) "a webhook gets a
public address", but only when local-only is off
([Webhook trigger](https://www.home-assistant.io/triggers/webhook/)).
- **Auth:** none beyond the ID: "A webhook doesn't need a password or a token."
The docs say not to use webhooks for destructive or safety-critical actions,
and give unlocking a door as an example.
- **Semantics:** fire-and-forget. HA "almost always returns `200 OK`" so that
webhook IDs can't be discovered, which means hAPI learns nothing about the
outcome. Results have to come back through a separate channel, such as a
`rest_command` to hAPI. Payloads are available as `trigger.json`,
`trigger.data`, and `trigger.query`.
- **Fit:** poor for hAPI given the "assume hostile internet" stance. A bearer ID
with no per-call result is weaker than the REST or WebSocket APIs on the same
network path.
### 6. REST polling plus `rest_command` (HA pulls from hAPI)
- **Direction:** HA opens every connection, so nothing inbound is needed at
home.
- **Pulling jobs:** the RESTful integration polls an endpoint every
`scan_interval`, 30 s by default. It supports `basic` or `digest` auth, custom
`headers` (so a bearer token works), and `verify_ssl`. JSON fields are exposed
via `json_attributes`
([RESTful](https://www.home-assistant.io/integrations/rest/)).
- **Reporting results:** an automation that reacts to a state change does the
job and then calls a `rest_command` to POST the result to hAPI.
`rest_command` supports GET, PATCH, POST, PUT, and DELETE, a 10 s default
timeout, and returns `status`, `content`, and `headers` through
`response_variable`
([RESTful Command](https://www.home-assistant.io/integrations/rest_command/)).
- **Reliability:** latency equals the polling interval. A job queue built from
sensor state and YAML templates is awkward, though acks are explicit because
HA POSTs the result.
- **Maintenance:** low infrastructure, but the job logic is spread across YAML
that is hard to test.
### 7. Custom integration (`custom_components`)
- **What it is:** a Python package in `config/custom_components/<domain>/`
whose `manifest.json` requires a `version` key for custom integrations
([Integration manifest](https://developers.home-assistant.io/docs/creating_integration_manifest/)).
It can run any client: an AMQP consumer, MQTT with a persistent session, a
long-poll or SSE loop against hAPI, or an outbound WebSocket to hAPI. It
calls HA actions directly and acks the job only after the action finishes.
That makes it the only option where HA initiates the connection and still
gets true at-least-once delivery with an explicit ack.
- **Distribution changed in 2026.11:** "The Marketplace replaces the Home
Assistant Community Store (HACS)". Custom repositories must be "a public
repository on GitHub"
([Marketplace](https://www.home-assistant.io/integrations/marketplace/)). A
private integration hosted on the Owner's Gitea therefore cannot be installed
or updated through the Marketplace; it would be copied into
`custom_components` by hand or by a script.
- **Maintenance:** highest. Changes to what custom integrations use from core
are "deprecated for 12 months first", but the integration still has to keep
up with HA releases; HA says to test against the beta
([Publish a custom integration](https://contributors.home-assistant.io/marketplace/guides/integrations/)).
## Comparison
| Mechanism | Connection opened by | Auth | Job ack / result | Survives HA offline? | Upkeep |
|---|---|---|---|---|---|
| MQTT (Mosquitto in cluster) | HA (outbound) | user/pass, mTLS | HA publishes result message | No (clean session); hAPI must re-send | Low (plus broker) |
| MQTT via RabbitMQ plugin | HA (outbound) | user/pass, x.509 | same | No | Unsupported by HA |
| AMQP | n/a (no integration) | n/a | n/a | n/a | Needs custom integration |
| REST API | hAPI (inbound) | Bearer long-lived token | Synchronous HTTP result | hAPI retries | Very low |
| WebSocket API | hAPI (inbound) | access token in `auth` msg | `result` per `id` | hAPI reconnects and reconciles | Medium |
| Webhook | hAPI (inbound) | secret ID only | None (always 200) | No | Low, weak security |
| REST poll + `rest_command` | HA (outbound) | basic/digest/header token | HA POSTs result | Yes (job waits in hAPI) | Low infra, clunky YAML |
| Custom integration | Either | anything | Explicit ack after action | Yes, if designed for it | High; no Marketplace for a Gitea repo |
## Implications for #55 (which bridge carries jobs)
- **Durability belongs in hAPI.** In every option, durability is cheapest as a
hAPI-owned job table in Postgres (pending, sent, done, failed) with retry
and idempotency keys. The transport only needs at-least-once delivery while
connected and a result path back.
- **If the private link (#46) exists:** calling HA's REST or WebSocket API from
hAPI is the simplest path. It needs no broker and no HA-side code, and gives a
synchronous result. HA would appear to hAPI as an external system that hAPI
calls with a long-lived token belonging to a dedicated HA user.
- **If HA must initiate:** MQTT to Mosquitto in the cluster is the supported
path, with hAPI re-sending unacked jobs when it sees `online` on
`homeassistant/status`. RabbitMQ is only worth it if hAPI wants AMQP for its
own internal reasons, and its MQTT plugin is unsupported by HA.
- **For HA to call hAPI** (to report results, or to poll), HA needs a hAPI
credential. In GLOSSARY terms that makes it a **Bot** Principal.
## Sources
- HA MQTT integration: https://www.home-assistant.io/integrations/mqtt/
- HA MQTT trigger: https://www.home-assistant.io/triggers/mqtt/
- HA core MQTT client source: https://github.com/home-assistant/core/blob/dev/homeassistant/components/mqtt/client.py and `const.py`
- RabbitMQ MQTT plugin: https://www.rabbitmq.com/docs/mqtt
- HA REST API: https://contributors.home-assistant.io/core/internals/rest-api/
- HA WebSocket API: https://contributors.home-assistant.io/core/internals/websocket-api/
- HA Auth API: https://contributors.home-assistant.io/core/internals/auth-api/
- HA Webhook trigger: https://www.home-assistant.io/triggers/webhook/
- HA RESTful: https://www.home-assistant.io/integrations/rest/
- HA RESTful Command: https://www.home-assistant.io/integrations/rest_command/
- HA integration manifest: https://developers.home-assistant.io/docs/creating_integration_manifest/
- HA Marketplace: https://www.home-assistant.io/integrations/marketplace/
- Publishing a custom integration: https://contributors.home-assistant.io/marketplace/guides/integrations/
+163
View File
@@ -0,0 +1,163 @@
# Self-managed Kubernetes on Linode: distributions and integration points
Research for Gitea issue #48 (part of map #44). Researched 2026-11-23. Version numbers and dates come from upstream release pages on that date and will go stale.
## Question
What are the workable ways to run a self-managed Kubernetes cluster (not LKE) on Linode Compute instances, and how does each one integrate with Linode? The comparison covers kubeadm, k3s, Talos Linux and RKE2 on learning value, security posture, upgrade story and resource footprint. The Linode integration points are the CCM (NodeBalancers), the CSI driver (Block Storage), VPC, Cloud Firewall, image availability, Cluster API and Terraform. The doc also covers where ingress-nginx and Gateway API stand today.
## TL;DR
- **All four distributions run on Linode.** The Linode pieces are the same for each: the Linode **CCM** (requires `--cloud-provider=external`), the **Block Storage CSI driver**, a **VPC**, and **Cloud Firewalls**. Terraform (`linode/linode`) provisions all of the infrastructure.
- **Talos Linux matches "security paramount" best.** It has no shell and no SSH, the OS is immutable and runs from SquashFS, everything is managed through an authenticated API, and upgrades are A/B with automatic rollback. Sidero publishes an **official Akamai/Linode install guide and a Linode image through Image Factory**, and there is a `siderolabs/talos` Terraform provider. The trade-off is that you learn Kubernetes more than you learn Linux administration.
- **kubeadm teaches the most and protects the least by default.** You assemble and harden every piece yourself on a general-purpose distro. **RKE2** gives the most CIS hardening out of the box. **k3s** has the smallest footprint and lets you skip pieces you don't want.
- **ingress-nginx is retired.** Maintenance ended in March 2026 and the repo was **archived on 2026-03-24**. Don't deploy it. Use a **Gateway API** implementation instead. Gateway API v1.7.0 (2026-10-29) is the latest release. Envoy Gateway, Cilium, NGINX Gateway Fabric, Istio and kgateway are all conformant.
- **Linode Managed Databases can join a VPC.** This means the cluster can reach the Postgres instance without going over the public network.
## Distribution comparison
| | kubeadm | k3s | RKE2 | Talos Linux |
|---|---|---|---|---|
| What it is | Upstream reference bootstrapper on a general-purpose OS such as Debian or Ubuntu | Lightweight CNCF distro, a single binary | SUSE/Rancher "hardened by default" distro | Immutable OS built only to run Kubernetes |
| Latest (2026-11-23) | Kubernetes 1.37.x (1.35, 1.36, 1.37 supported) [K8s releases] | v1.37.2+k3s1 (2026-11-03) | v1.37.2+rke2r1 (2026-11-05) | v1.14.6 (2026-11-11), default Kubernetes 1.37.1 [Talos releases] |
| Learning value | Highest. You choose and wire up the CNI, container runtime, PKI, etcd and hardening yourself. | Medium. Many pieces come bundled. | Medium. Similar to k3s but tuned for hardening. | High for Kubernetes and declarative operations, low for Linux administration (there is no shell) |
| Security posture | Depends on how you harden the host OS. SSH and a full userland stay installed. | Has a hardening guide, but defaults favor convenience | "Hardened by default", passes most CIS controls. The `profile: cis` setting enforces PSA `restricted`, network policies and file permissions. Without it, PSA is `privileged`. API audit logging is off by default. [RKE2 hardening] | No shell, no SSH, no systemd or GNU userland. Read-only SquashFS root. No passwords. All network traffic is encrypted and key-authenticated, and certificates are short-lived and rotate automatically. [Talos philosophy] |
| Upgrade story | `kubeadm upgrade` one minor version at a time, plus OS patching yourself (two separate lifecycles) | Swap the binary or use system-upgrade-controller | Same as k3s | `talosctl upgrade` through the API. A/B images with automatic rollback if the new version fails to boot. Kubernetes upgrades are a separate step. [Talos upgrading] |
| Footprint | OS plus the components. Size is up to you. | Server: 2 CPU / 2 GB. Agent: 1 CPU / 512 MB [k3s requirements] | Somewhat larger than k3s | Minimal OS. The official guide uses `g6-standard-2` (2 CPU / 4 GB) nodes |
| Bundled defaults | Nothing | Flannel, Traefik, ServiceLB, local-path (each can be disabled) | Canal, and Traefik as the default ingress for new clusters from v1.36 (ingress-nginx removed) [RKE2 hardening] | Flannel by default. Cilium is the common replacement. |
| Linode-specific support | CAPL `kubeadm` flavors. The default flavor installs the CCM and CSI. | CAPL `k3s` flavor | CAPL `rke2` flavor | Official Sidero Akamai guide and an Image Factory `akamai-amd64.raw.gz` image. **No CAPL flavor.** |
### Talos on Linode in practice
From the official guide [Talos Akamai]:
1. Download `akamai-amd64.raw.gz` from Image Factory and upload it as a custom image with `linode-cli image-upload`.
2. Create a NodeBalancer for the API endpoint (TCP 443 forwarding to 6443 on the control-plane nodes), then run `talosctl gen config <name> https://<NB-IP>`.
3. Create the Linodes from the image, passing the machine config base64-encoded as **Metadata `user_data`**.
4. **Change each Linode's boot kernel to `linode/direct-disk`.** The default boot setting panics, and the change requires a reboot.
5. Run `talosctl bootstrap` on the first control-plane node, then `talosctl kubeconfig`.
The guide does **not** cover the CCM or CSI driver, so install them yourself (see below). Talos v1.14.2 added a fix to "handle Akamai/Linode metadata without IPv6" [Talos releases]. That is relevant because VPC interfaces don't support IPv6.
## Linode integration points
### Cloud Controller Manager (`linode/linode-cloud-controller-manager`, latest v0.9.11, 2026-10-20)
- **Requirements:** Kubernetes 1.22 or later. kubelet, kube-controller-manager and kube-apiserver all need `--cloud-provider=external`. Also a Linode API token and a supported region. Install it with Helm or manifests. [CCM README]
- **Service controller:** Provisions **NodeBalancers** for `type: LoadBalancer` Services, with health checks, TLS and Proxy Protocol (`default-proxy-protocol`). [CCM README] [CCM annotations]
- **Firewall annotations:** `firewall-id` attaches an existing Cloud Firewall to the NodeBalancer. `firewall-acl` takes a JSON allow/deny list. [CCM annotations]
- **VPC backends:** `backend-vpc-name`, `backend-subnet-name`/`-id` and `backend-ipv4-range` route NodeBalancer-to-node traffic over the VPC. IPv6 backends are public-only. [CCM annotations]
- **Node controller:** Sets node addresses and region/zone labels, and cleans up nodes when their Linode is deleted. **NodeIPAM** assigns pod CIDRs to nodes. [CCM README]
- **Route controller:** Programs VPC routes for each node's pod CIDR (`--configure-cloud-routes`, `--vpc-names`, `--cluster-cidr`). This allows native-routed pod networking without an overlay. The pod CIDR must not overlap the VPC subnet. [CCM routes]
### Block Storage CSI driver (`linode/linode-blockstorage-csi-driver`, latest v1.1.6, 2026-11-23)
- Install it with Helm (recommended) or kubectl, using a Linode API token.
- Supports **LUKS encryption**, topology-aware provisioning and volume tags.
- Minimum volume size is 10 Gi. **Online expansion is not supported**: the pod has to reattach the volume after a resize. [CSI README]
- In this architecture Postgres lives in Managed Databases, so the CSI driver is only needed for incidental PVCs.
### VPC
- Free. Up to 500 Linodes and 10 subnets per VPC. Limited to one region, with no peering. [VPC docs]
- **Traffic inside a VPC is isolated from other tenants but not encrypted.** Use WireGuard or Cilium transparent encryption if you need encryption in transit. [VPC docs]
- **VPC interfaces don't support IPv6.** [VPC docs] Note that a February 2026 changelog mentions "Dual-Stack VPC" for Managed Databases, so this may be changing. [DBaaS dual-stack]
- Internet egress options: private-only, 1:1 NAT, or a subnet-level NAT gateway (outbound only). [VPC docs]
- NodeBalancer backends can sit in the VPC. [VPC docs]
- Avoid the legacy "Private IP" (192.168.128.0/17). Other customers' Linodes in the same region can reach it. [VPC docs]
### Managed Postgres in the VPC
- Managed Databases can be attached to a same-region VPC through the `private_network` object (launched 2025-09-30). [DBaaS VPC changelog] [Postgres API]
- The VPC subnet does not automatically block outbound connections from the database. Akamai doesn't grant superuser, so some extensions may fail. [Postgres API]
- The Terraform provider release notes up to v4.10.0 (2026-11-19) don't mention DB `private_network`. **Check whether `linode_database_postgresql_v2` exposes it before relying on Terraform for this.** [TF provider releases]
### Cloud Firewall
- Free and stateful. Attaches to Linodes, Linode Interfaces (both public and VPC interfaces) and NodeBalancers. [Cloud Firewall docs]
- Limits: 25 rules per firewall, 255 IPs/ranges per rule, 15 ports per rule. [Cloud Firewall docs]
- NodeBalancers only get inbound rules, and those apply to the public IP only. Firewall rules do not apply to VLAN traffic. [Cloud Firewall docs]
- `linode/cloud-firewall-controller` is **LKE-specific**. On a self-managed cluster, manage node firewalls with Terraform and NodeBalancer firewalls with CCM annotations. [cloud-firewall-controller]
- **For Talos:** open 50000/tcp (apid) and 6443 to your admin IPs only, plus etcd and kubelet traffic inside the VPC.
### Images
- Talos uses an official Image Factory image uploaded as a custom image. [Talos Akamai]
- kubeadm, k3s and RKE2 run on stock Linode distro images (Debian, Ubuntu and others), bootstrapped through Metadata/cloud-init user data.
### Cluster API: CAPL (`linode/cluster-api-provider-linode`, latest v0.10.17, 2026-10-29)
- Flavors are kubeadm (including clusterclass), k3s and rke2, with variants for vpcless, dualstack, etcd-backup-restore, cluster-autoscaler and others. The kubeadm default flavor installs the CCM and CSI driver. [CAPL flavors] [CAPL templates]
- **There is no Talos flavor.** Sidero has moved its Talos CAPI bootstrap and control-plane providers to community maintenance and points users to Omni instead. [Sidero CAPI blog]
- CAPL v0.10.x requires CAPI v1beta2 (v1.11). [CAPL README]
- CAPI needs a management cluster, which adds complexity for a single small cluster. Terraform is simpler here.
### Terraform / OpenTofu
- **`linode/linode`** (v4.10.0, 2026-11-19) covers instances, VPC/subnets, firewalls, NodeBalancers, images and databases. [TF provider releases]
- **`siderolabs/talos`** handles machine secrets, config generation, apply and bootstrap. The release the GitHub API marks as latest is `v0.13.0-alpha.2` (2026-11-19), so pin a stable tag.
- A typical Talos stack chains three steps: `linode/linode` creates the image, VPC, firewalls, NodeBalancer and instances (with user_data); `siderolabs/talos` bootstraps the cluster and outputs the kubeconfig; then Helm installs the CCM, CSI and Gateway API controller (or GitOps takes over).
## Ingress-nginx and Gateway API
- **ingress-nginx is retired.** It was announced on 2025-11-11, best-effort maintenance ended in March 2026, and there are no more releases or security fixes. The repo was archived on 2026-03-24. Existing images and charts still work. The README says: do not deploy it, and "identify a Gateway API implementation and use it." [K8s blog retirement] [K8s blog statement] [ingress-nginx repo]
- **Ingress2Gateway 1.0** (2026-03-20) is a migration tool. It doesn't matter for a greenfield cluster.
- **Gateway API v1.7.0** (2026-10-29) moved HTTPRoute retries to the Standard channel. v1.6 made TCPRoute and UDPRoute GA and added the CORS filter to Standard. [Gateway API releases]
- Conformance as listed on the implementations page [GW implementations]:
- kgateway: v1.7.0, conformant
- Cilium: v1.6.1, conformant for Gateway and Mesh
- Envoy Gateway: v1.6.1, conformant
- NGINX Gateway Fabric: v1.6.3, conformant
- Istio: v1.6.0, conformant
- Traefik: v1.6.1, partially conformant
- HAProxy (as N42 Gateway): v1.5.1, partially conformant
- Integration pattern on Linode: the Gateway controller's data-plane Service is `type: LoadBalancer`, so the CCM creates a NodeBalancer, firewalled through `firewall-id` and with VPC backends.
- **Cilium is a good fit if you want one component** to act as the CNI (kube-proxy replacement, NetworkPolicy, WireGuard encryption over the unencrypted VPC) and the Gateway API controller. **Envoy Gateway** is the vendor-neutral standalone choice.
## Suggested direction (input for the map, not a decision)
For "learn, small, security paramount":
- Talos plus Cilium (Gateway API and WireGuard), the Linode CCM with VPC backends and firewall annotations, and the CSI driver.
- Managed Postgres attached to the same VPC.
- All of it provisioned with OpenTofu, using the `linode/linode` and `siderolabs/talos` providers.
If the main goal is learning how Kubernetes is assembled, an alternative is a throwaway kubeadm cluster first, then Talos for the real cluster.
## Open questions and things to verify
- Does `linode_database_postgresql_v2` support `private_network` (VPC attach) in Terraform?
- Can the boot kernel be set to `direct-disk` declaratively with `linode_instance` (config/kernel settings)? Otherwise the Talos guide's manual step stays manual.
- What is the minimum node size for Talos plus Cilium, and is 1 control-plane node plus 1 worker acceptable, or are 3 control-plane nodes required for etcd HA? This is a cost/HA call for the Owner.
- Should the Kubernetes API sit behind a NodeBalancer with a firewall-id ACL, or be reachable only over WireGuard or a bastion?
## Sources
- [K8s releases] https://kubernetes.io/releases/
- [K8s blog retirement] https://kubernetes.io/blog/2025/11/11/ingress-nginx-retirement/
- [K8s blog statement] https://kubernetes.io/blog/2026/01/29/ingress-nginx-statement/
- [ingress-nginx repo] https://github.com/kubernetes/ingress-nginx
- [Gateway API releases] https://github.com/kubernetes-sigs/gateway-api/releases
- [GW implementations] https://gateway-api.sigs.k8s.io/implementations/
- [Talos Akamai] https://docs.siderolabs.com/talos/v1.13/platform-specific-installations/cloud-platforms/akamai
- [Talos philosophy] https://docs.siderolabs.com/talos/v1.13/learn-more/philosophy
- [Talos upgrading] https://docs.siderolabs.com/talos/v1.13/configure-your-talos-cluster/lifecycle-management/upgrading-talos
- [Talos releases] https://github.com/siderolabs/talos/releases
- [Sidero CAPI blog] https://siderolabs.com/blog/talos-linux-capi-community-maintenance/
- [RKE2 hardening] https://docs.rke2.io/security/hardening_guide
- [k3s requirements] https://docs.k3s.io/installation/requirements
- [CCM README] https://github.com/linode/linode-cloud-controller-manager
- [CCM annotations] https://github.com/linode/linode-cloud-controller-manager/blob/main/docs/configuration/annotations.md
- [CCM routes] https://github.com/linode/linode-cloud-controller-manager/blob/main/docs/configuration/routes.md
- [CSI README] https://github.com/linode/linode-blockstorage-csi-driver
- [CAPL README] https://github.com/linode/cluster-api-provider-linode
- [CAPL flavors] https://linode.github.io/cluster-api-provider-linode/topics/flavors/flavors.html
- [CAPL templates] https://github.com/linode/cluster-api-provider-linode/tree/main/templates/flavors
- [VPC docs] https://techdocs.akamai.com/cloud-computing/docs/vpc
- [Cloud Firewall docs] https://techdocs.akamai.com/cloud-computing/docs/cloud-firewall
- [cloud-firewall-controller] https://github.com/linode/cloud-firewall-controller
- [DBaaS VPC changelog] https://techdocs.akamai.com/cloud-computing/changelog/vpc-for-dbaas
- [DBaaS dual-stack] https://techdocs.akamai.com/cloud-computing/changelog/feb-10-2026-dbaas-dual-stack-ipv6
- [Postgres API] https://techdocs.akamai.com/linode-api/reference/postgresql
- [TF provider releases] https://github.com/linode/terraform-provider-linode/releases
- Release dates for k3s, RKE2, CCM, CSI, CAPL, Gateway API and terraform-provider-talos come from the GitHub releases API (`/releases/latest`) on 2026-11-23.