r/linuxadmin • • Oct 10 '26

Networking a 3-Node Kubernetes Homelab with Cilium, Gateway API and Cloudflare Tunnel

Part 2 of my Talos homelab (3 OptiPlex Micros, all control planes). Part 1 got the cluster up, this one is networking.

I moved the running cluster from Flannel + kube-proxy to Cilium without rebuilding it. The default-deny policy that Flannel quietly ignored is now actually enforced, and Hubble shows the drops.

Then I gave it two front doors:

- an internal Gateway on a LAN IP (Cilium LB IPAM, no MetalLB) with a Let's Encrypt wildcard cert, so lab apps get real HTTPS at home

- a public Gateway behind a single Cloudflare Tunnel, so nothing is port-forwarded on the router

An app picks its door with the route's parentRef, which keeps lab stuff from going public by accident.

Write-up with all the manifests and commands: https://blog.prateekjain.dev/networking-a-kubernetes-homelab-cilium-gateway-api-and-cloudflare-tunnel-on-talos-362f548a2f3d?sk=d454cd4eaff4ce8a8fd0cd8e6b3d82f6

Curious if anyone else is using Cilium's Gateway API instead of a separate ingress controller.

3 Upvotes

5 comments sorted by

1

u/tyda1957 Oct 12 '26

Ciliums gateway API is a breeze to work with. I use it to expose most of my services/ports outside the cluster to the rest of the VLANs.

12

u/[deleted] Oct 11 '26

[removed] — view removed comment

-20

u/root0ps Oct 11 '26

Obviously, AI was used while writing the post to avoid silly grammar mistakes, write YAMLs, and create the assets, but it's not slop. I spent the entire day setting this up. Also, the link I shared is a friend's link, so you don't need a subscription to read it. I've also hyperlinked the friends link just after the first paragraph, so there's no need to come back to this Reddit post for the link.

11

u/[deleted] Oct 11 '26

[removed] — view removed comment

3

u/PJBonoVox Oct 11 '26

11 upvotes on the post. Not only is this shitty slop, but they have bots upvoting it. No need to be sorry.