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 105 deletions

No files matched your search

-105
View File
@@ -1,105 +0,0 @@
# Linode (Akamai Cloud) Managed PostgreSQL: networking, security, backups
Research for issue #49 (part of #44). Researched 2026-11-23 against Akamai TechDocs, the Akamai pricing page, and the `linode/terraform-provider-linode` repo (latest release v4.10.0, published 2026-11-19).
## Which generation this covers
There are two Linode/Akamai Managed Database generations. The API reports which one you have in the `platform` field: `rdbms-legacy` or `rdbms-default` ([API: create PostgreSQL DB][api-create]).
- **Legacy** (`rdbms-legacy`): the original Linode DBaaS. Akamai is migrating these databases to the new system. Some legacy endpoints, such as the database backups endpoints, aren't supported in the new product and will be deprecated ([changelog 2024-11-14][cl-2024]).
- **Current** (`rdbms-default`): Akamai "reintroduced" the service on 2024-11-14, built with Aiven, in 20 core compute regions ([changelog 2024-11-14][cl-2024], [cluster overview][overview]).
**Everything below applies to the current (Aiven-based) generation only.** Older guides and blog posts that describe the legacy product (for example, ones listing PG 13 or a backups API) don't apply to it.
## Bottom line for hAPI
- **Private access is possible, through a VPC.** A database cluster can be attached to a VPC in the same region (`private_network.vpc_id` / `subnet_id`). Its hostname then resolves to a private IPv4 address in the VPC subnet, and public access is off unless `public_access = true` ([manage clusters][manage], [API: create][api-create]). Our self-managed Kubernetes nodes are plain Linode Compute instances, and "Linodes can join a VPC by specifying the VPC as a network interface" ([VPC][vpc]). So the nodes need a VPC interface in the same VPC and region as the database.
- **Caveat: VPC for Managed Databases launched as beta (2025-09-30), and I found no GA announcement.** The API changelog says use of `private_network` "is in beta" and "may cause disruptions in certain production environments" ([API changelog 2025-09-30][api-cl-vpc], [cloud changelog 2025-09-30][cl-vpc]). The current manage-clusters page doesn't label it beta, but no changelog entry declares it GA. Treat it as beta until you see a GA entry.
- **Without a VPC: public endpoint plus an IP allowlist.** Each cluster has an ACL, and "by default, all connections both public and private are blocked unless they appear on this list" ([manage clusters][manage]). The ACL still applies when a VPC is attached, so add the VPC subnet CIDR to `allow_list` (inference from that quote, not stated outright).
- **The LKE auto-allowlist doesn't help us.** Akamai rewrites each database's ACL every 10 minutes with the IPs of all **LKE** nodes in the account ([manage clusters][manage]). hAPI runs self-managed Kubernetes on Compute, not LKE, so node IPs have to be managed ourselves (for example with Terraform `linode_database_access_controls`). Also note that if LKE is ever used in the same account, every LKE node is allowlisted on every database automatically. Opting out requires a support ticket.
- **TLS is mandatory.** `ssl_connection` is "currently required to be `true`". A CA certificate is downloadable from Cloud Manager or available as the Terraform `ca_cert` attribute, so clients can use `sslmode=verify-full` ([API: create][api-create], [PostgreSQL doc][pg], [TF resource][tf]).
- **Backups:** daily backups, kept 14 days, with point-in-time restore inside that window. Restores always create a new (forked) cluster ([overview][overview], [manage clusters][manage]).
- **Cheapest option:** Shared 1 GB at $16/mo for one node or $37/mo for three nodes (HA). That plan has 9 GB of usable storage ([pricing][pricing]).
## Versions
- PostgreSQL **15, 16, 17, 18** are supported ([engines and plans][engines]). Engine IDs look like `postgresql/16`; the live list comes from the List engines API ([API: create][api-create]).
- Major-version upgrades run in place, start immediately when you click Upgrade, and can't be reverted. A failed compatibility check rolls back. Discontinued versions are upgraded automatically during the maintenance window ([manage clusters][manage]). I found no published version EOL schedule.
## Plans and HA
- Plan families: Shared CPU and Dedicated CPU; premium Linode types are also accepted ([engines and plans][engines], [API changelog 2025-09-30][api-cl-vpc]). Ranges: Dedicated 1-3 nodes, 4-512 GB RAM, 80-7200 GB storage. Shared 1 or 3 nodes, 1-192 GB RAM, 25-7200 GB storage ([overview][overview]).
- `cluster_size`: `1`, `2`, or `3`. `3` means one primary and two standbys. `2` is dedicated-only ([API: create][api-create]). Three-node clusters give "data redundancy and automatic failover" ([overview][overview]).
- HA tuning through `engine_config`: `pglookout.max_failover_replication_time_lag` (TF default 60 s) and `synchronous_replication` (`quorum` or `off`, three-node only) ([API: create][api-create], [TF resource][tf]).
- Single-node clusters have downtime during maintenance and resizes ([manage clusters][manage]).
## Networking details
- The VPC must be in the same region as the cluster. You can assign, change, or unassign a VPC after creation, but "any change of the networking settings causes a temporary downtime" ([manage clusters][manage]).
- With `public_access = true`, a second hostname is published. Swap the `private-` prefix for `public-` to get it ([manage clusters][manage]). The API `endpoints` array (added 2026-03-31) lists each address with its role and `public_access` ([API changelog 2026-03][api-cl-2026]).
- The VPC subnet doesn't automatically block outbound connections outside the subnet. Akamai recommends Cloud Firewall rules on the VPC Linodes, including blocking inbound traffic from the cluster's VPC range ([manage clusters][manage], search summary of [API: update][api-update]).
- VPC traffic "is isolated from other cloud tenants, [but] it is not encrypted", and VPC interfaces have no IPv6 ([VPC][vpc]). TLS (mandatory) covers this.
- The docs say "the connection to a database cluster over a private IP address is not supported" and recommend public IPv6 instead ([manage clusters][manage]). This sits in the ACL section, so I read it as referring to legacy Linode private IPv4 (`192.168.128.0/17`, shared by all Linodes in a region, [VPC][vpc]) rather than VPC addresses. The page doesn't define the term, though. **Verify before relying on either reading.**
- Cost: inbound transfer is free. Public IPv4 from Linodes costs egress; IPv6 (AAAA) from same-region Linodes avoids transfer charges ([overview][overview], [manage clusters][manage]). VPCs themselves cost nothing extra. Egress overage is $0.005/GB ([pricing][pricing]).
- Known issue: some PostgreSQL clients that prefer IPv6 can hang for about 3 minutes when only an IPv4 ACL entry exists ([manage clusters][manage]).
- VPCs are single-region, can't be peered, and are no longer supported in distributed regions as of 2026-04-22 ([VPC][vpc]).
## Users, roles, extensions, pooling
- The admin user is `akmadmin`. **Superuser isn't available.** Akamai says to use `akmadmin`/`defaultdb` for administration only and to create separate users and databases for applications ([PostgreSQL doc][pg]). There's no API or Terraform resource for database users or roles, so per-app roles have to be created in SQL (for example, a migration or bootstrap job running as `akmadmin`).
- The root password can be reset (a new random one is generated), but the root user can't be removed ([manage clusters][manage], [overview][overview]). Terraform exposes `root_username` and `root_password` as attributes, so the password ends up in Terraform state.
- `engine_config_pg_password_encryption` defaults to **`md5`** according to the Terraform docs. Set `scram-sha-256` explicitly ([TF resource][tf]).
- Extensions: Akamai links to Aiven's extension list instead of publishing its own ([PostgreSQL doc][pg]). `pg_stat_monitor` (toggle restarts the cluster), `pg_stat_statements` and `pg_partman` settings are exposed through `engine_config` ([TF resource][tf]).
- PgBouncer connection pools (API-managed) were added on 2026-03-31 ([API changelog 2026-03][api-cl-2026]).
- Encryption at rest: Terraform exports an `encrypted` attribute ([TF resource][tf]). I didn't find a first-party Akamai statement on at-rest encryption; the overview page only links to Aiven's encryption docs ([overview][overview]).
- There's no OS access, config files can't be edited, and replicas can't be hosted outside the service ([overview][overview]).
## Backups and restore
- Daily backups, retained 14 days, no extra cost. Point-in-time recovery for any time in that window ([overview][overview]).
- To restore, create a new database with `fork.source` and an optional `fork.restore_time` (must be newer than `oldest_restore_time`). Without `restore_time` you get the newest full backup plus incremental. A restore always makes a **new cluster**; delete the original to stop paying for both ([API: create][api-create], [manage clusters][manage]).
- A deleted database's backups are kept for 180 days, and a suspended cluster can be resumed within 180 days ([manage clusters][manage]).
- There's no off-platform or exportable backup feature and no configurable retention. For personal finance data, we'd need our own `pg_dump` to separate storage (such as Object Storage) to survive account-level loss or retention longer than 14 days. That's my inference, not an Akamai recommendation.
## Maintenance
- Window defaults to Sunday 20:00 UTC, weekly. `duration` "can only be `4`" hours and `frequency` "can only be `weekly`" via API/TF; day and hour (UTC) are configurable ([manage clusters][manage], [API: create][api-create]). The manage page says the default lasts 3 hours, which conflicts with the API's fixed 4.
- Pending updates appear in `pending_updates`, with a deadline, and can be applied manually ([TF resource][tf], [manage clusters][manage]).
## Pricing (PostgreSQL = MySQL, monthly, USD)
| Plan | vCPU / RAM / usable storage | 1 node | 2 nodes | 3 nodes |
|---|---|---|---|---|
| Shared 1 GB | 1 / 1 GB / 9 GB | $16 | n/a | $37 |
| Shared 2 GB | 1 / 2 GB / 30 GB | $32 | n/a | $74 |
| Shared 4 GB | 2 / 4 GB / 58 GB | $63 | n/a | $147 |
| G7 Dedicated 4 GB | 2 / 4 GB / 58 GB | $81.60 | $171.60 | $246 |
Source: [pricing][pricing]. The pricing page marks shared plans as "legacy hardware". Akamai also advertises a $100 trial credit.
## Terraform support
- Use `linode_database_postgresql_v2`. The v1 `linode_database_postgresql` doc no longer exists in the provider repo (404 on `main`). Remaining database resources: `database_postgresql_v2`, `database_mysql_v2`, `database_access_controls` ([provider repo docs][tf-dir]).
- `linode_database_postgresql_v2` supports `engine_id`, `region`, `type`, `cluster_size`, `allow_list`, `private_network { vpc_id, subnet_id, public_access }` (in Terraform, `subnet_id` is **required** when `private_network` is set), `fork_source` / `fork_restore_time`, `updates`, and many `engine_config_*` fields. It exports `ca_cert`, `host_primary`, `host_secondary` (private host), `root_username`, `root_password`, `port`, and `encrypted`. Provisioning "can take up to half an hour" ([TF resource][tf]).
- I didn't find PgBouncer pool resources in the provider docs listing.
## Open questions
- Is VPC for Managed Databases GA yet? No changelog entry says so, as of 2026-11-23.
- What exactly does "connection over a private IP address is not supported" mean? See the networking section above.
- Is at-rest encryption on by default? There's no first-party Akamai statement.
[overview]: https://techdocs.akamai.com/cloud-computing/docs/aiven-database-clusters
[manage]: https://techdocs.akamai.com/cloud-computing/docs/aiven-manage-database
[engines]: https://techdocs.akamai.com/cloud-computing/docs/database-engines-plans
[pg]: https://techdocs.akamai.com/cloud-computing/docs/aiven-postgresql
[vpc]: https://techdocs.akamai.com/cloud-computing/docs/vpc
[api-create]: https://techdocs.akamai.com/linode-api/reference/post-databases-postgre-sql-instances
[api-update]: https://techdocs.akamai.com/linode-api/reference/put-databases-postgre-sql-instance
[api-cl-vpc]: https://techdocs.akamai.com/linode-api/changelog/sep-30-2025-managed-databases-vpc-support
[cl-vpc]: https://techdocs.akamai.com/cloud-computing/changelog/vpc-for-dbaas
[api-cl-2026]: https://techdocs.akamai.com/linode-api/changelog/mar-2026-managed-databases-updates
[cl-2024]: https://techdocs.akamai.com/cloud-computing/changelog/nov-14-2024-database
[pricing]: https://www.akamai.com/cloud/pricing/databases
[tf]: https://github.com/linode/terraform-provider-linode/blob/main/docs/resources/database_postgresql_v2.md
[tf-dir]: https://github.com/linode/terraform-provider-linode/tree/main/docs/resources
+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.