Skip to main content

Cluster overview

The site you’re reading runs on KodePull’s on-prem K3s cluster — six nodes split between a Proxmox host and a handful of bare-metal machines, meshed over Tailscale, with Envoy Gateway in front and a Cloudflare Tunnel handling the public edge.

It started as my homelab. Today it has two jobs at KodePull: it runs the workloads of clients who want their data kept on local hardware, and it is the relay and backup site for KodePull’s production clusters, which run in the cloud and on bare metal in datacenters. It still hosts cjoga.cloud and blog.cjoga.cloud, next to kodepull.com and KodePull’s own tooling.

How it’s wired today​

Cluster ingress flow — public traffic comes through Cloudflare and cloudflared into Envoy Gateway's public data plane, devices on the Tailscale VPN reach a separate internal data plane, and both fan out through HTTPRoutes to app namespaces on the K3s cluster of Proxmox VMs and bare-metal workersCluster ingress flow — public traffic comes through Cloudflare and cloudflared into Envoy Gateway's public data plane, devices on the Tailscale VPN reach a separate internal data plane, and both fan out through HTTPRoutes to app namespaces on the K3s cluster of Proxmox VMs and bare-metal workers

Six nodes: one K3s control-plane node living as a Proxmox VM (prox-k8s-master), one second VM worker on the same Proxmox host, and four bare-metal workers, all joined to the cluster over Tailscale. Storage is the local-path provisioner that ships with K3s, so each volume lives on the disk of the node that runs it. Secrets are OpenBao — the FOSS Vault fork — fronted by External Secrets Operator, which reads it over the in-cluster Service, so apps consume Kubernetes secrets without ever touching the bao directly. TLS is cert-manager plus Let’s Encrypt.

Ingress is Envoy Gateway via the Gateway API, in two data planes. The public one has a Gateway per production domain, merged into one shared Envoy deployment, with HTTPRoutes per app. Its edge is a Cloudflare Tunnel: cloudflared runs as pods in the cluster, and Cloudflare proxies public hostnames in. The internal one has its own Gateway per domain and answers only on the VPN: Tailscale’s split DNS sends those domains to a CoreDNS inside the cluster, which resolves them to the internal data plane. The admin tools — n8n, Semaphore, OpenBao — are attached to the internal one only.

The platform layer — Envoy Gateway, that CoreDNS, cert-manager’s issuer, the Cloudflare tunnel, the Tailscale subnet router — is managed from KodePull’s cluster repository. My lab repo keeps the personal workloads and the cjoga.cloud gateways.

Read off the cluster on October 30, 2026: K3s v1.33, Envoy Gateway v1.9 running two Envoy replicas per data plane, cert-manager v1.19, OpenBao v2.5 and External Secrets v2.3; 117 pods across 38 namespaces, behind 44 HTTPRoutes.

The stack
K3s
Proxmox
Tailscale
Envoy
Cloudflare
OpenBao
External Secrets
cert-manager
Let's Encrypt
GitHub
Prometheus
Longhorn, Retired

How it got here​

The architecture took three iterations to settle.

v1 — three nodes on WiFi, and a flannel cascade​

The first version was three physical machines on WiFi, all on the same network. K3s plus Traefik — the default k3s setup. The first headache came from being mixed-distro: two nodes on Ubuntu and one on Rocky Linux. Networking, storage drivers, and the OS commands the cluster relied on did not behave the same on both sides, and the differences kept biting.

The bigger problem was the WiFi itself. When a node briefly dropped its connection, or when it hit disk or memory pressure, flannel on that node would fall over — and the failure rippled, taking pod-to-pod networking down across the rest of the cluster. Manual recovery became the daily mode.

That’s what produced the self-healing Ansible playbook I still run today. It checks tailscaled, the flannel interface, the K3s service, CoreDNS resolution, and disk usage on every node; heals what it can (restarts services, recreates interfaces, prunes container images when disk is elevated, vacuums journals when it’s critical); and reports a per-node status block at the end. It’s the closest thing the lab has to a node operator, and it’s been running long enough to outlast two cluster topologies.

v2 — wire everything, mesh the rest​

The next iteration moved the cluster off WiFi entirely. Once the core nodes were wired, the rule became: any node that lived outside the LAN had to come in over a private network, not the public internet. The choice was Tailscale. A Tailscale gateway runs as a pod in the cluster, advertising the cluster’s subnets to the rest of my tailnet. On the DNS side, Magic DNS is configured to split traffic for internal hostnames to a dedicated CoreDNS deployment running inside the cluster — so any device on the VPN resolves internal services through cluster DNS without me having to wire up an external resolver.

v3 — Proxmox, Envoy, and a public tunnel​

The current shape settled in once I moved the K3s master onto a Proxmox VM. Putting the control plane on a VM made it easier to back up, easier to move, and easier to share a box with other infrastructure I didn’t want on dedicated hardware. A second VM worker on the same Proxmox host joined the cluster, alongside the bare-metal workers that came over from v1 and v2.

Two more changes locked the architecture down. Public ingress moved from Traefik to Envoy Gateway. k3s ships with Traefik wired in, but I wanted to follow the upstream Gateway API direction rather than vendor-specific CRDs. Migration was per-domain: stand up an Envoy Gateway for cjoga.cloud, port the routes, cut over, repeat for kodepull.com and the client sites. The Traefik bits are still in the cluster but they no longer serve real traffic. External access is a Cloudflare Tunnel. No exposed ports on my home network — cloudflared pods open outbound connections to Cloudflare, and Cloudflare proxies public hostnames into Envoy. The tunnel itself is still managed in the Cloudflare UI rather than as code; that’s a deliberate trade-off I’ll probably revisit, but it’s worked well enough that I haven’t.

After v3 — local storage, internal ingress, a handover​

v3 is still the shape. Four changes in 2026 reworked it from inside.

Longhorn went away. Through v3, storage was Longhorn, and it cost more memory than the lab had to spare: by late May the control-plane VM and one bare-metal worker were both above 90% memory. On May 27, 2026 I wrote a runbook to move all nineteen Longhorn volumes onto local-path and uninstall Longhorn, which I expected to free about 25 GB of RAM across the cluster. By August 29 the longhorn-system namespace no longer existed, and wherever the lab repo’s manifests name a storage class, it’s local-path. The replica notes are from the Longhorn era.

Ingress split in two. Until late August, public traffic and my own devices on the VPN landed on the same Envoy data plane, so a hostname could only serve one version, and every deploy, even of work in progress, touched what the public saw. On August 29 I added a second, internal-only data plane with a Gateway per domain, and pointed the cluster’s CoreDNS at it. The same URL now shows the public version outside the VPN and the internal one inside it, and an app can opt in to ship a branch to the VPN before it goes public. The same day I took n8n, Semaphore and OpenBao off the public gateways.

The platform moved to KodePull. On September 6, 2026 I handed the platform layer — Envoy Gateway, the internal CoreDNS, cert-manager’s issuer, the Cloudflare tunnel, the Tailscale subnet router and the Headlamp dashboard — to KodePull’s cluster repository, which is now its only source of truth. I deleted the copies from my lab repo instead of keeping them in sync: two authoritative sources for one cluster object is how a fix gets silently reverted.

The cluster became KodePull’s. The platform handover was the first half. The second was the cluster’s job: KodePull’s production now runs on clusters in the cloud and on bare metal in datacenters, and this one stopped being a homelab that also hosted client sites. It runs the workloads of clients who want their data on local hardware, and it relays to and backs up those production clusters. The Proxmox host and the bare-metal workers stayed where they were; what changed is who depends on them.

What runs on it now​

As of October 30, 2026, read off the cluster:

  • This site. The portfolio and the handbook (cjoga.cloud, blog.cjoga.cloud), two replicas each, plus the kubestronaut-sim hub.
  • KodePull’s own tooling. The marketing site (kodepull.com), the docs site, an Outline wiki, an invoice generator with a Gotenberg PDF service, a leads tool, a document-branding service, and a real-estate showcase. Most of them run a -dev deployment beside production, so work in progress ships to the VPN first.
  • Client workloads. KodePull clients who keep their data on local hardware: a landing page with its API, an invoice generator, and a WordPress site, each with its own PostgreSQL, Redis or MariaDB inside the cluster.
  • CI. GitHub Actions self-hosted runners from Actions Runner Controller in two scale sets (one to four general runners, zero to two for end-to-end tests), building images with BuildKit.
  • Operations. Semaphore for the Ansible playbooks, a private n8n, the Headlamp dashboard, and Prometheus with kube-state-metrics and node-exporter for metrics.
  • Personal projects. Two Discord bots for job postings, pucmm-band (web, API and PostgreSQL), and a Minecraft server with a Cloudflare DDNS job.

For the failure modes that taught me what the playbook actually has to cover, see Tips and gotchas.