Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d867149bb3 |
No files matched your search
@@ -1,302 +0,0 @@
|
|||||||
# Private connectivity between the home network and a Linode cluster
|
|
||||||
|
|
||||||
Research for Gitea issue #46 (part of map #44). Researched 2026-11-23.
|
|
||||||
|
|
||||||
## Question
|
|
||||||
|
|
||||||
What are the options for a private, authenticated link between the Owner's home
|
|
||||||
network (Home Assistant, LAN Bots) and a self-managed Kubernetes cluster on
|
|
||||||
Linode? Compare Tailscale (incl. the Kubernetes operator / subnet routers),
|
|
||||||
Headscale, plain WireGuard site-to-site, and Linode VPC features: setup,
|
|
||||||
security model, failure modes, how in-cluster Services are exposed over the
|
|
||||||
link, and cost.
|
|
||||||
|
|
||||||
## TL;DR
|
|
||||||
|
|
||||||
- **Linode VPC can't do this.** It is a single-data-center private network
|
|
||||||
with no VPN/on-prem attachment, no peering, and **no encryption**. Akamai
|
|
||||||
has no managed site-to-site VPN product. VPC only matters for
|
|
||||||
traffic inside the cluster. [VPC][akamai-vpc]
|
|
||||||
- **Tailscale + the Kubernetes operator is the lowest-effort fit.** You can
|
|
||||||
expose a Bot-facing Service to the tailnet with one annotation. Home Assistant
|
|
||||||
joins via the community add-on, which can also act as a subnet router for
|
|
||||||
other LAN Bots. Grants are deny-by-default, so you can limit LAN Bots
|
|
||||||
to the Bot-facing Service only. The free Personal plan covers this load.
|
|
||||||
- **Surprise: Tailnet Lock does not work with the operator.** Tailnet Lock is
|
|
||||||
Tailscale's defense against a compromised coordination server, and the
|
|
||||||
operator can't sign the proxy nodes it creates. The feature request is
|
|
||||||
still open. So with the operator you have to trust Tailscale's control plane.
|
|
||||||
[#13273][ts-13273]
|
|
||||||
- **Headscale removes that third-party trust, but it isn't ready yet for the
|
|
||||||
operator path.** Operator compatibility (OAuth clients on a v2 API) was
|
|
||||||
merged in June 2026 for v0.30.0, but the latest release is still v0.29.7. You'd
|
|
||||||
also have to host and secure the control server yourself.
|
|
||||||
[#3334][hs-3334] [releases][hs-releases]
|
|
||||||
- **Plain WireGuard has the smallest and most auditable surface**: a silent
|
|
||||||
UDP port and static keys. But you do all key management, routing into the
|
|
||||||
cluster, and HA by hand.
|
|
||||||
|
|
||||||
**Tentative recommendation** (a decision for the Owner, not made here):
|
|
||||||
Tailscale with the operator, an L3 `tailscale` Service for the Bot-facing
|
|
||||||
listener, tagged nodes, and a tight grants policy with `tests`. Keep the
|
|
||||||
Bot-facing listener off the public Ingress entirely. If the Owner wants
|
|
||||||
no third-party control plane, choose plain WireGuard (a single gateway now)
|
|
||||||
or wait for Headscale v0.30.0.
|
|
||||||
|
|
||||||
## Options compared
|
|
||||||
|
|
||||||
| | Tailscale (SaaS) + operator | Headscale + Tailscale clients | Plain WireGuard | Linode VPC |
|
|
||||||
|---|---|---|---|---|
|
|
||||||
| Reaches home LAN? | Yes | Yes | Yes | **No** |
|
|
||||||
| Encryption | WireGuard, keys never leave devices | Same | WireGuard | **None** (isolation only) |
|
|
||||||
| Control plane | Tailscale-hosted | Self-hosted | None (static config) | n/a |
|
|
||||||
| Inbound ports on cluster | None required (DERP relay fallback) | Control server must be reachable, and its DERP if embedded | One UDP port | n/a |
|
|
||||||
| Expose k8s Service | Annotation / `loadBalancerClass: tailscale` / Ingress class | Same operator, **only once v0.30.0 ships** | DIY routing | n/a |
|
|
||||||
| Access control | Grants/ACLs, deny-by-default, policy tests | ACLs/Grants supported | Cryptokey routing + your firewall rules | Cloud Firewall |
|
|
||||||
| Cost | $0 (Personal: 6 users, 50 tagged resources) | $0 + hosting a server | $0 | $0 |
|
|
||||||
|
|
||||||
## Linode VPC and Cloud Firewall
|
|
||||||
|
|
||||||
- VPCs connect Linodes **within one data center**. They can't span data
|
|
||||||
centers, and VPC peering isn't supported. [VPC][akamai-vpc]
|
|
||||||
- "Traffic is isolated but not encrypted." There's no IPv6 on VPC interfaces.
|
|
||||||
VPCs have no extra charge. [VPC][akamai-vpc]
|
|
||||||
- The docs mention no VPN or on-prem attachment. I found no official Akamai
|
|
||||||
site-to-site VPN product. The only guidance for on-prem links is community
|
|
||||||
posts about running your own IPsec/strongSwan gateway on a Linode
|
|
||||||
([community 21930][linode-c-21930]; low trust, used only to show that
|
|
||||||
nothing first-party exists).
|
|
||||||
- Cloud Firewall is stateful and free. It covers Linodes and NodeBalancers and
|
|
||||||
allows max 25 rules per firewall. Rules apply to public and private traffic.
|
|
||||||
For NodeBalancers, rules cover only the public IP, so backends need their own
|
|
||||||
firewall. [Cloud Firewall][akamai-fw]
|
|
||||||
|
|
||||||
**Verdict:** VPC is useful for node-to-node traffic inside the cluster. It
|
|
||||||
plays no part in the home link. Cloud Firewall is complementary: with WireGuard,
|
|
||||||
it limits the UDP port to the home public IP (if that IP is stable).
|
|
||||||
|
|
||||||
## Tailscale (SaaS) with the Kubernetes operator
|
|
||||||
|
|
||||||
### Setup
|
|
||||||
|
|
||||||
- The operator is available on all plans. It covers ingress (tailnet → cluster
|
|
||||||
workloads), egress (cluster → tailnet devices), API-server proxy, and
|
|
||||||
subnet routers/exit nodes via a `Connector` resource.
|
|
||||||
[operator][ts-operator]
|
|
||||||
- Prerequisites: in the policy file, set `tagOwners` with
|
|
||||||
`"tag:k8s-operator": ["autogroup:admin"]` and
|
|
||||||
`"tag:k8s": ["tag:k8s-operator"]`. Create an OAuth client with read/write on
|
|
||||||
Services, Devices Core, and Auth Keys, tagged `tag:k8s-operator`. The operator
|
|
||||||
stores the credentials in the `operator-oauth` secret in the `tailscale`
|
|
||||||
namespace. [quickstart][ts-quickstart]
|
|
||||||
- If you want non-default proxy tags (e.g. `tag:hapi-bot`), `tag:k8s-operator`
|
|
||||||
must own them, and the OAuth client must be allowed to use them. There's
|
|
||||||
a known startup failure with multiple `defaultTags`
|
|
||||||
([issue #15732][ts-15732]).
|
|
||||||
|
|
||||||
### Exposing in-cluster Services over the link
|
|
||||||
|
|
||||||
From [cluster ingress][ts-ingress]:
|
|
||||||
|
|
||||||
- **L3 (TCP/UDP):** annotate the Service with `tailscale.com/expose: "true"`, *or*
|
|
||||||
set `type: LoadBalancer` + `loadBalancerClass: tailscale`. A proxy Pod DNATs
|
|
||||||
its tailnet IP to the Service's ClusterIP.
|
|
||||||
- **L7 (HTTP/S):** use `Ingress` with `ingressClassName: tailscale`. You get a
|
|
||||||
MagicDNS name and a Let's Encrypt cert through Tailscale Serve.
|
|
||||||
- These are **not public** by default. Public needs Funnel, which you should
|
|
||||||
avoid for the Bot side.
|
|
||||||
- HA: a `ProxyGroup` (`tailscale.com/proxy-group` annotation) runs multiple
|
|
||||||
active proxies. Tailscale recommends it for production.
|
|
||||||
|
|
||||||
So a Bot-facing hAPI listener can be its own Service, reachable *only* via
|
|
||||||
the tailnet. Persons hit the public Ingress, which never routes to it.
|
|
||||||
|
|
||||||
### Home side
|
|
||||||
|
|
||||||
- **Home Assistant:** the community add-on supports `advertise_routes`
|
|
||||||
(subnet router), `accept_routes`, `advertise_tags`, `login_server` (custom
|
|
||||||
control server, e.g. Headscale), and `userspace_networking`.
|
|
||||||
[addon-tailscale docs][ha-addon]
|
|
||||||
- **Other LAN Bots** that can't run Tailscale go through a subnet router (the
|
|
||||||
HA add-on, or another always-on box). Devices behind a subnet router don't
|
|
||||||
count toward the device limit. SNAT is on by default, so cluster-side traffic
|
|
||||||
appears to come from the router, which loses per-Bot source IPs unless you set
|
|
||||||
`--snat-subnet-routes=false` (Linux only, needs return routes for
|
|
||||||
`100.64.0.0/10`). Route approval is separate from access: you need grants
|
|
||||||
too. [subnet routers][ts-subnets]
|
|
||||||
- Tailscale prefers installing the client directly on each device over
|
|
||||||
subnet routing. [subnet routers][ts-subnets]
|
|
||||||
|
|
||||||
### Security model
|
|
||||||
|
|
||||||
- Data plane: WireGuard. Private keys never leave the device. DERP relays
|
|
||||||
forward already-encrypted traffic they can't decrypt. Connections are usually
|
|
||||||
direct, with peer relays and then DERP as fallback. [DERP][ts-derp]
|
|
||||||
- Policy: deny-by-default grants (`src`/`dst`/`ip`). A `tests` section
|
|
||||||
rejects policy updates that break assertions. Example intent: `src:
|
|
||||||
["tag:home-bot"]`, `dst: ["tag:hapi-bot:443"]`. [policy syntax][ts-policy]
|
|
||||||
- **Trust in the control plane:** Tailscale's coordination server distributes
|
|
||||||
node keys, so a compromised control plane could inject nodes. Tailnet Lock
|
|
||||||
closes that gap: nodes must be signed by trusted keys held on your devices.
|
|
||||||
It's available on Personal. [Tailnet Lock][ts-lock]
|
|
||||||
- **But the operator can't add its proxies to a locked tailnet** without manual
|
|
||||||
signing of each proxy node key. Issue #13273 and PR #14404 are still open as
|
|
||||||
of this research. [#13273][ts-13273] This trade-off is the main thing to
|
|
||||||
weigh: operator convenience vs. control-plane-compromise resistance. One
|
|
||||||
workaround: skip the operator and run a single `tailscaled` gateway
|
|
||||||
(e.g. a Deployment with persisted state, or a node-level install) whose key
|
|
||||||
is signed once, routing to the Bot-facing Service.
|
|
||||||
|
|
||||||
### Failure modes
|
|
||||||
|
|
||||||
- Tailscale control plane outage: existing connections generally keep working,
|
|
||||||
but new nodes/key changes stall. (General property of the design. I didn't
|
|
||||||
find a precise first-party statement for this, so check before relying on it.)
|
|
||||||
- Proxy Pod restart blips the link unless you use `ProxyGroup` HA. [ingress][ts-ingress]
|
|
||||||
- A subnet router going offline drops its routes, and there's no fallback to a
|
|
||||||
less specific route. Run two routers for HA, without `--accept-routes` on
|
|
||||||
them. [subnet routers][ts-subnets]
|
|
||||||
- Let's Encrypt rate limits can bite L7 Ingress on frequent redeploys.
|
|
||||||
[ingress][ts-ingress]
|
|
||||||
|
|
||||||
### Cost
|
|
||||||
|
|
||||||
Personal plan: $0, non-commercial, up to 6 users, unlimited user devices,
|
|
||||||
**50 tagged resources** (then $1/mo each), 3 ACL groups. Operator proxies and
|
|
||||||
tagged gateways count as tagged resources. That's ample here. [pricing][ts-pricing]
|
|
||||||
|
|
||||||
## Headscale
|
|
||||||
|
|
||||||
- An open-source, self-hosted implementation of the Tailscale control server.
|
|
||||||
Its scope is deliberately narrow: **a single tailnet**, for self-hosters and
|
|
||||||
hobbyists. [headscale][hs-home]
|
|
||||||
- Supported: ACLs, Grants, Tailscale SSH, auto approvers, subnet routers, exit
|
|
||||||
nodes, tags, OIDC (but OIDC groups can't be used in ACLs), embedded DERP, and
|
|
||||||
Taildrop. Funnel/Serve and Tailnet Lock aren't listed as supported.
|
|
||||||
[features][hs-features]
|
|
||||||
- **Operator compatibility:** the operator chart has a `loginServer` value for a
|
|
||||||
non-Tailscale control plane ([values.yaml][ts-values]). Headscale PR #3334
|
|
||||||
("add OAuth clients and scopes to the v2 API") was merged on 2026-06-26 and
|
|
||||||
closed issue #1202 ("OAuth Provider + Tailscale Kubernetes operator
|
|
||||||
compatibility") under milestone v0.30.0. [#3334][hs-3334] [#1202][hs-1202]
|
|
||||||
**The latest release is v0.29.7, so it hasn't shipped yet.** [releases][hs-releases]
|
|
||||||
- The HA add-on supports `login_server`, so the home side works today.
|
|
||||||
[ha-addon][ha-addon]
|
|
||||||
- **Security trade-off:** you remove Tailscale Inc. from the trust base, but the
|
|
||||||
control server becomes your crown jewel. It must be reachable by home and
|
|
||||||
cluster nodes, so it's internet-exposed somewhere. Hosting it *inside* the
|
|
||||||
cluster it protects creates a bootstrap/circular dependency. You also own
|
|
||||||
its patching, backups, and DERP.
|
|
||||||
- **Cost:** software is free. Hosting is a small Linode or a cluster
|
|
||||||
workload, plus operations time.
|
|
||||||
|
|
||||||
## Plain WireGuard site-to-site
|
|
||||||
|
|
||||||
### Security model
|
|
||||||
|
|
||||||
- Cryptokey routing: each peer is a public key with a list of allowed IPs. Those
|
|
||||||
act as the routing table for outbound traffic and the ACL for inbound, so
|
|
||||||
firewall rules on source IP + interface are trustworthy. It uses Noise,
|
|
||||||
Curve25519, ChaCha20-Poly1305, BLAKE2, and HKDF, and the codebase is
|
|
||||||
small enough to audit. [wireguard.com][wg-home]
|
|
||||||
- The server "does not even *respond at all*" to unauthenticated packets. It's
|
|
||||||
silent to scanners, with a cookie mechanism under load. Handshakes occur
|
|
||||||
every few minutes for rotating session keys. [protocol][wg-protocol]
|
|
||||||
- Key distribution is out of scope: you exchange public keys out of band,
|
|
||||||
like SSH keys. [wireguard.com][wg-home]
|
|
||||||
|
|
||||||
### Setup and exposing Services
|
|
||||||
|
|
||||||
- Home side: a WireGuard peer on an always-on LAN box (or router). It
|
|
||||||
initiates toward the cluster's public UDP endpoint, with
|
|
||||||
`PersistentKeepalive = 25` to hold the NAT mapping (off by default).
|
|
||||||
[quickstart][wg-quick] The cluster doesn't need to know the home IP, because
|
|
||||||
WireGuard roams to the last authenticated endpoint. [wireguard.com][wg-home]
|
|
||||||
- Cluster side: you do all of it yourself. Options:
|
|
||||||
- A WireGuard interface on one node (host-level), routing the tunnel subnet
|
|
||||||
to the Bot-facing Service's ClusterIP or a dedicated internal IP.
|
|
||||||
- A gateway Pod with `hostNetwork` or a UDP NodePort/LoadBalancer.
|
|
||||||
Either way you handle iptables/nftables, return routes, and which node holds
|
|
||||||
the endpoint.
|
|
||||||
- Lock the UDP port down with Cloud Firewall (to the home public IP if it's
|
|
||||||
stable). [Cloud Firewall][akamai-fw]
|
|
||||||
|
|
||||||
### Failure modes
|
|
||||||
|
|
||||||
- A single gateway node is a single point of failure, and HA needs your own
|
|
||||||
failover (e.g. floating IP + keepalived). There's no built-in relay, so a home
|
|
||||||
network with broken outbound UDP just fails. Losing a key means editing
|
|
||||||
configs by hand on both sides.
|
|
||||||
|
|
||||||
### Cost
|
|
||||||
|
|
||||||
$0 (in-kernel software). You pay only in operator time.
|
|
||||||
|
|
||||||
## How this fits hAPI
|
|
||||||
|
|
||||||
- **Separation of Principals by network:** Persons → public Ingress. Bots →
|
|
||||||
a distinct Bot-facing Service exposed only on the private link. Defense in
|
|
||||||
depth: hAPI should still authenticate Bots at the application layer (the link
|
|
||||||
is a network control, not Principal authentication).
|
|
||||||
- With Tailscale/Headscale, tags give a stable identity per home device or
|
|
||||||
subnet router. With SNAT on, hAPI sees only the router's address, so per-Bot
|
|
||||||
identity must come from app-level credentials anyway.
|
|
||||||
|
|
||||||
## Open questions for the Owner
|
|
||||||
|
|
||||||
1. Is trusting Tailscale's hosted control plane acceptable, given Tailnet
|
|
||||||
Lock is unavailable with the operator? If not: plain WireGuard now, or
|
|
||||||
Headscale once v0.30.0 ships.
|
|
||||||
2. Can each LAN Bot run a Tailscale client, or do most need a subnet router
|
|
||||||
(which loses per-device source identity unless SNAT is disabled)?
|
|
||||||
3. Is the home public IP stable (relevant to firewalling a WireGuard port)?
|
|
||||||
|
|
||||||
## Sources
|
|
||||||
|
|
||||||
- [akamai-vpc]: https://techdocs.akamai.com/cloud-computing/docs/vpc
|
|
||||||
- [akamai-fw]: https://techdocs.akamai.com/cloud-computing/docs/cloud-firewall
|
|
||||||
- [linode-c-21930]: https://www.linode.com/community/questions/21930/site-to-site-vpn (community, low trust)
|
|
||||||
- [ts-operator]: https://tailscale.com/kb/1236/kubernetes-operator
|
|
||||||
- [ts-quickstart]: https://tailscale.com/docs/kubernetes-operator/quickstart
|
|
||||||
- [ts-ingress]: https://tailscale.com/kb/1439/kubernetes-operator-cluster-ingress
|
|
||||||
- [ts-15732]: https://github.com/tailscale/tailscale/issues/15732
|
|
||||||
- [ts-values]: https://github.com/tailscale/tailscale/blob/main/cmd/k8s-operator/deploy/chart/values.yaml
|
|
||||||
- [ts-subnets]: https://tailscale.com/kb/1019/subnets
|
|
||||||
- [ts-derp]: https://tailscale.com/kb/1232/derp-servers
|
|
||||||
- [ts-policy]: https://tailscale.com/kb/1337/policy-syntax
|
|
||||||
- [ts-lock]: https://tailscale.com/kb/1226/tailnet-lock
|
|
||||||
- [ts-13273]: https://github.com/tailscale/tailscale/issues/13273
|
|
||||||
- [ts-pricing]: https://tailscale.com/pricing
|
|
||||||
- [ha-addon]: https://github.com/hassio-addons/addon-tailscale/blob/main/tailscale/DOCS.md
|
|
||||||
- [hs-home]: https://headscale.net/stable/
|
|
||||||
- [hs-features]: https://headscale.net/stable/about/features/
|
|
||||||
- [hs-3334]: https://github.com/juanfont/headscale/pull/3334
|
|
||||||
- [hs-1202]: https://github.com/juanfont/headscale/issues/1202
|
|
||||||
- [hs-releases]: https://github.com/juanfont/headscale/releases
|
|
||||||
- [wg-home]: https://www.wireguard.com/
|
|
||||||
- [wg-protocol]: https://www.wireguard.com/protocol/
|
|
||||||
- [wg-quick]: https://www.wireguard.com/quickstart/
|
|
||||||
|
|
||||||
[akamai-vpc]: https://techdocs.akamai.com/cloud-computing/docs/vpc
|
|
||||||
[akamai-fw]: https://techdocs.akamai.com/cloud-computing/docs/cloud-firewall
|
|
||||||
[linode-c-21930]: https://www.linode.com/community/questions/21930/site-to-site-vpn
|
|
||||||
[ts-operator]: https://tailscale.com/kb/1236/kubernetes-operator
|
|
||||||
[ts-quickstart]: https://tailscale.com/docs/kubernetes-operator/quickstart
|
|
||||||
[ts-ingress]: https://tailscale.com/kb/1439/kubernetes-operator-cluster-ingress
|
|
||||||
[ts-15732]: https://github.com/tailscale/tailscale/issues/15732
|
|
||||||
[ts-values]: https://github.com/tailscale/tailscale/blob/main/cmd/k8s-operator/deploy/chart/values.yaml
|
|
||||||
[ts-subnets]: https://tailscale.com/kb/1019/subnets
|
|
||||||
[ts-derp]: https://tailscale.com/kb/1232/derp-servers
|
|
||||||
[ts-policy]: https://tailscale.com/kb/1337/policy-syntax
|
|
||||||
[ts-lock]: https://tailscale.com/kb/1226/tailnet-lock
|
|
||||||
[ts-13273]: https://github.com/tailscale/tailscale/issues/13273
|
|
||||||
[ts-pricing]: https://tailscale.com/pricing
|
|
||||||
[ha-addon]: https://github.com/hassio-addons/addon-tailscale/blob/main/tailscale/DOCS.md
|
|
||||||
[hs-home]: https://headscale.net/stable/
|
|
||||||
[hs-features]: https://headscale.net/stable/about/features/
|
|
||||||
[hs-3334]: https://github.com/juanfont/headscale/pull/3334
|
|
||||||
[hs-1202]: https://github.com/juanfont/headscale/issues/1202
|
|
||||||
[hs-releases]: https://github.com/juanfont/headscale/releases
|
|
||||||
[wg-home]: https://www.wireguard.com/
|
|
||||||
[wg-protocol]: https://www.wireguard.com/protocol/
|
|
||||||
[wg-quick]: https://www.wireguard.com/quickstart/
|
|
||||||
@@ -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.
|
||||||
Reference in new issue
Block a user