Atiu is a small raised coral atoll in the Cook Islands: three villages, limestone caves, old land lifted above the surface with hard rock underneath. It’s also the name of my homelab, the Atiu Cloud Platform, and the metaphor is the point. I wanted something small that rests on solid foundations.

As a platform leader I spend most of my time on strategy, people and trade-offs. That’s the job, but it’s easy to drift away from the tools. Atiu is how I stay honest. It runs my media, productivity tools and the odd game of Factorio, and I run it the way I’d expect a team to run production: everything in Git, decisions written down, upgrades through a pipeline, nothing changed by hand.

This post covers how it’s built, the decisions that shaped it, and what running it day to day has taught me.

The rules I set myself

Before writing any YAML I wrote down a handful of operating principles. Any new component that breaks one needs an ADR to justify the exception.

  • GitOps for everything reconcilable. If it can be expressed as YAML in Git, it lives in Git. Shell scripts exist only for the chicken-and-egg before Argo CD is running.
  • One public domain, no split horizon. Every service resolves the same way from anywhere. Internal versus external is enforced by authentication, not DNS.
  • Auth at the edge by default. Nothing reaches the cluster without passing an identity check first.
  • Least privilege by default. Default-deny network policy in every namespace, explicit allows on top.
  • Secrets never in Git.
  • Pinned versions. No floating tags, no chart version ranges.
  • A promotion pipeline gates production. Humans merge to main. Production deploys from a branch only the pipeline can advance.

None of these are novel. Writing them down is what made them stick when it would have been quicker to cut a corner at 11pm.

The stack, bottom to top

flowchart TB
    subgraph edge["Edge"]
        user([Browser]) --> access["Cloudflare Access<br/>Google login"]
        access --> tunnel["Cloudflare Tunnel"]
    end

    subgraph host["Mini PC · Alpine + Incus"]
        subgraph k8s["Kubernetes on Talos"]
            cfd["cloudflared"] --> gw["Envoy Gateway"]
            gw --> apps["Apps<br/>Jellyfin, Excalidraw, landing page"]
            gw --> platform["Platform services<br/>Infisical, Longhorn, Garage, CNPG,<br/>Harbor, Kyverno, Prometheus, Grafana"]
        end
    end

    tunnel -. "outbound only" .- cfd

    subgraph git["GitHub"]
        main[("main")] -->|"Kargo verifies in<br/>ephemeral vcluster"| stable[("stable")]
        renovate["Renovate"] -->|PRs| main
    end

    stable -.->|"Argo CD reconciles"| k8s
    platform -.->|"backups"| s3[("AWS S3")]

Diagram 1 — Atiu from the edge to the GitOps loop

Hardware and virtualisation

The whole platform runs on a single GMKtec M5 Ultra mini PC. It runs Alpine Linux as a lean hypervisor with Incus for VMs and containers, and Open vSwitch bridges that separate host services from the Kubernetes network.

A few things live on Incus directly rather than in Kubernetes: a web console for Incus itself, a bootstrap-time TLS proxy, and a Bazzite VM for gaming that renders on the CPU and streams to a PC with Moonlight. The iGPU is passed through to the Kubernetes node that runs Jellyfin for hardware transcoding. It has no reset method, so it can only belong to one guest, and the gaming VM loses that argument.

Kubernetes

Three Talos Linux VMs form the cluster, each acting as both control plane and worker. Talos is immutable and API-driven, with no SSH and no package manager, which fits the “nothing by hand” rule perfectly. Cilium is the CNI, replaces kube-proxy and provides L2 load balancing.

I’m honest with myself about what three VMs on one box buys me. It protects against my own mistakes during upgrades and gives me realistic multi-node behaviour, but it isn’t hardware redundancy. The repo says so plainly: single tenant, no HA on stateful services. That’s the right trade-off for a homelab, and pretending otherwise would be the real mistake.

Edge and identity

There are no open inbound ports and no public IP. cloudflared runs inside the cluster and dials out to Cloudflare Tunnel; Envoy Gateway routes requests to services with Gateway API HTTPRoutes.

Every hostname sits behind Cloudflare Access with Google login. Behind that, apps that support OIDC sign in through Dex, which adds Google Workspace groups to the token so Grafana, Argo CD, Kargo and Harbor can map roles from them. Apps with no usable login of their own get a per-app oauth2-proxy. Local admin accounts survive only as break-glass.

Platform services

The platform layer is what turns a cluster into something you can build on:

  • Secrets: Infisical as the source of truth, surfaced as Kubernetes Secrets by External Secrets Operator.
  • Storage: Longhorn for block storage, Garage for S3-compatible object storage, and Harbor as a registry that proxy-caches every image in use.
  • Data: CloudNativePG running one shared PostgreSQL cluster, plus a shared Redis for ephemeral caches.
  • Guardrails: Kyverno validating and mutating policies written in CEL, default-deny CiliumNetworkPolicies per namespace, VPA for right-sizing and the Descheduler to rebalance pods.
  • Observability: kube-prometheus-stack, Grafana and Hubble for network flows.
  • Delivery: Argo CD, Argo Rollouts and Kargo.

The cluster currently renders 45 Argo CD Applications, every one of them from Git.

Decisions worth writing down

Atiu has seventeen ADRs. Writing them for a one-person project might sound excessive, but future me is a different person who has forgotten everything. These are the ones I find most interesting.

Infisical over Vault

Vault is the incumbent, but for a single operator it’s heavy: unseal workflows, storage backend choices, HCL policies and an HA story designed for teams. HashiCorp’s move to the BSL made its open source trajectory uncertain too. Infisical is lighter to self-host and has a first-class External Secrets provider.

The trade-off is maturity: no dynamic secrets engines, PKI or transit encryption. cert-manager covers PKI separately. The other cost is a bootstrapping loop. Infisical’s own credentials can’t come from External Secrets, because External Secrets reads from Infisical, so a small number of secrets have to be seeded by hand exactly once.

Garage over MinIO

MinIO has drifted away from being a sensible self-hosted default, between AGPL licensing and features moving out of the community edition. It’s also tuned for large erasure-coded fleets rather than three small nodes. Garage is designed for exactly this profile: a lightweight binary, a simple replication model and enough of the S3 API for the consumers I have.

The lesson came later. Garage sits on the same Longhorn disks it would be backing up, so it can never be the off-site copy. Backups go to AWS S3 instead.

App-of-Apps, not ApplicationSet, at this scale

ApplicationSets are great for stamping out uniform Applications across many clusters. Atiu is one cluster with heterogeneous components: different sync waves, per-app ignoreDifferences, manual-sync policies. Pushing all that divergence into generator templates would make debugging miserable.

So every component has a plain, explicit Application manifest, scaffolded by a script. The ADR includes a revisit trigger: more than three clusters, or apps uniform enough that a generator covers 80% of cases. It’s the same thinking from cluster management to fleet management, applied at the smallest scale.

Kustomize, not Helmfile

Helmfile adds a second render pipeline that Argo CD’s repo server doesn’t run, so local renders and cluster reality can quietly diverge. Instead, charts are consumed by multi-source Argo CD Applications: the upstream chart, a values reference back to the repo, and an extras/ directory for the resources the chart doesn’t template. make validate reproduces exactly what Argo CD applies.

One shared Postgres instead of embedded databases

When Broadcom deprecated Bitnami’s public catalog in 2025, every chart with an embedded Bitnami database was left pinned to frozen, unpatched images. Those databases were also invisible to platform tooling, with no shared backups or metrics.

The fix was one CloudNativePG cluster run as a platform service, with a database per app. One Postgres to operate, monitor, back up and upgrade instead of one per chart, and CNPG’s generated credentials neatly break another circular dependency with the secrets store.

Bootstrap: one hour, three trust handoffs

Bootstrap is the only time anything is applied imperatively, and it’s laid out as numbered phases:

bootstrap/
├── 10-hypervisor        # Alpine hardening, Incus, Open vSwitch, edge proxy
├── 20-incus-services    # optional: console, gaming VM
├── 30-talos             # image schematic, VMs, Talos bootstrap
├── 40-kubernetes        # Cilium, Envoy Gateway, Argo CD, Infisical seed, root app
├── 50-aws-backups
└── 60-cloudflare

Every script is idempotent and safe to re-run. From a freshly installed mini PC to a cluster reconciling itself from Git takes about an hour, most of it downloads and waiting for etcd, Cilium and the first Argo CD sync.

The interesting part is the order of trust. Talos hands you a kubeconfig, which gets you cluster trust. The Argo CD admin password gets you GitOps trust and lets you apply the root Application. Then an Infisical machine identity gives External Secrets access to secrets, and from that point the platform builds itself. One gotcha is worth knowing: an Infisical machine identity’s client ID is not its identity ID. Use the wrong one and you get a reassuring SecretSynced=True with empty values.

Day two

Promotion, not just deployment

This is the part I’m proudest of. Development is trunk-based and humans only merge to main, but Argo CD deploys production from a separate stable branch that only Kargo can advance.

Every commit on main becomes a piece of Freight. Kargo verifies it by installing it into an ephemeral vcluster, and upgrade-path checks run automatically when a chart version changes. Only verified Freight is fast-forwarded onto stable. A failed change never reaches the cluster. Rolling back is a git revert on main that flows through the same pipeline.

There’s one deliberate exception: the pipeline’s own configuration tracks main directly, so a broken pipeline can always receive its own fix.

Renovate with blast-radius control

Renovate runs three times a week and bumps chart pins, image tags and digest-pinned images in the bootstrap scripts. The components that can take the whole platform down (Longhorn, Cilium, External Secrets, cert-manager and kube-prometheus-stack) each get their own PRs, so a mega-bump can’t break everything at once. Minor and major Longhorn and Cilium upgrades are always manual.

Upgrades, backups and power

Talos upgrades run one node at a time from a script, gated on cluster health before moving on. Postgres ships WAL and base backups to S3 through CNPG’s Barman Cloud plugin, Velero backs up app config volumes. Nothing holds a static AWS key: pods swap their service-account token for an hour of AWS credentials, the same mechanism as EKS IRSA, with the cluster publishing its own OIDC discovery document. Shutdown and startup are staged scripts with a verification gate at each stage, because power cuts happen.

A homelab also has an electricity bill. Atiu parks itself overnight: workloads scale to zero and two of the three nodes stop, then everything comes back in the morning. A Grafana dashboard prices the mini PC’s measured power draw against an electricity tariff, which is the most honest FinOps report I’ve ever owned.

Adding an app

./scripts/new-app.sh <group> <name> scaffolds the standard layout: an Application, a kustomization, values files and an extras/ directory for routes, external secrets and network policy. Because every component looks the same, reviewing a new one is mostly checking what’s different.

What’s next

The backlog is mostly about adding things rather than fixing them: Loki and Alloy for logs, Gitea, Immich for photos, Home Assistant, Pi-hole, a self-hosted mail server and personal finance tooling.

The bigger lesson is the one I keep relearning at work. The tooling was never the hard part. What made Atiu reliable was writing down the rules, recording why each decision was made, and building the pipeline before I needed it. Small island, hard rock underneath.