Why

I wanted one place to run my products and the sites I look after, with the discipline I’d expect at work: everything declared in git, reproducible, observable and secure. The constraint was that it runs on-prem, on ARM64 servers with NVMe that I own, at close to zero running cost. That rules out managed cloud services, so every capability a cloud gives you had to be built from the right components.

The paved road

Adding a service is a folder in the platform repo and one line in the app of apps. From then on, a push to main is the deployment, and the service gets everything below without asking.

Capability Component Why it’s there
Continuous delivery Argo CD, Helm, Kustomize Git is the source of truth; drift is corrected automatically
Artifact supply GHCR, Docker Hardened Images Private, SHA-tagged images on minimal, hardened bases
Secrets External Secrets Operator, Bitwarden Secrets Manager No secrets in git; the backend can change without touching apps
Ingress Cloudflare Tunnel, ingress layer (moving to Envoy Gateway) Public services with zero open inbound ports
Certificates cert-manager, Let’s Encrypt Automatic TLS, including LAN-only hosts over DNS-01
Identity oauth2-proxy, Microsoft Entra ID One SSO in front of every internal tool
Policy Kyverno, NetworkPolicies, PDBs Guardrails applied by the cluster, not by memory
Telemetry OpenTelemetry (Grafana Alloy) One collector for metrics and logs from every workload
Metrics & logs Mimir, VictoriaMetrics, Loki, VictoriaLogs Prometheus-compatible storage, compared side by side on ARM
Dashboards & alerting Grafana, ntfy Dashboards per product, alerts pushed to a phone
Data PostgreSQL 18 + pgvector, Redis, MariaDB Shared, backed-up data services for every app
Storage CSI provisioner, shared NVMe One StorageClass; volumes aren’t tied to a node
Lifecycle system-upgrade-controller, image checks Deliberate cluster upgrades, visible image drift
Developer portal Backstage Catalogue and portal for the services, integrated with GitHub
Code quality SonarQube Quality gates that product CI pipelines report to

Delivery: GitOps, pull not push

Argo CD owns the cluster’s desired state. CI only builds and tests, then publishes images tagged with the commit SHA to a private registry. It never touches the cluster, so cluster credentials never live in CI. Product charts live in the product repos; environment values live in the platform repo. Sync waves and PreSync hooks make ordering explicit: secrets first, then database migrations, then the app. A small deploy tool finds the newest released image, bumps the tag, pushes and waits for Argo CD to report healthy. Rolling back is a git revert.

Secrets: managed, never in git

Every secret is an ExternalSecret, resolved by the External Secrets Operator from a secrets manager. Because apps only reference secret names, the backend could move from Azure Key Vault to Bitwarden Secrets Manager by swapping one ClusterSecretStore, without touching a single application.

Edge and identity: zero trust in front of everything

Public traffic arrives through an outbound-only Cloudflare Tunnel: the network has no open inbound ports at all. Behind it, the ingress layer routes by host (currently moving to Envoy Gateway on the Gateway API), and cert-manager issues certificates from Let’s Encrypt, over DNS-01 for hosts that are only reachable on the LAN. Internal tools sit behind oauth2-proxy with Microsoft Entra ID, so sign-in and access are managed in one identity provider. I wrote about that setup in Securing Kubernetes ingress with oauth2-proxy and Entra ID.

Workload hardening

New services run as non-root with a read-only root filesystem, all capabilities dropped and the default seccomp profile, with NetworkPolicies where they matter and PodDisruptionBudgets for anything with replicas. This site runs on a Docker Hardened Images base and uses about 7 MB of RAM. Private registry credentials are distributed by policy (Kyverno) instead of being copied by hand.

Observability: OpenTelemetry end to end

Grafana Alloy collects metrics and logs as an OpenTelemetry collector. It runs on the host network, because the K3s kubelet isn’t otherwise reachable for scraping. Metrics go to Prometheus-compatible stores (Mimir and VictoriaMetrics), logs to Loki and VictoriaLogs, and Grafana turns them into dashboards and alerts that reach my phone. Apps opt in to scraping with annotations; the PlatformEngr portal, for example, exposes request rate, latency and errors, with alerts on downtime and error spikes. Running two stacks side by side let me compare their footprint on ARM before standardising.

Data and storage

A shared, Helm-managed PostgreSQL 18 with pgvector and scram-sha-256 authentication, nightly backups and a documented restore procedure. Redis and MariaDB serve the apps that need them. Storage is one StorageClass from a CSI provisioner on a shared NVMe filesystem, so pods can move between nodes; databases are pinned to the node where that disk is local.

Lifecycle and runbooks

Kubernetes upgrades are deliberate: the system-upgrade controller’s plans are switched on, roll through the nodes, and are switched off again. A script reports outdated images across everything Argo CD manages. The repo carries runbooks for the work that matters when things go wrong or change:

  • backups and restores
  • a Postgres 17 → 18 major upgrade
  • a security fix that replaced trust with scram-sha-256 authentication
  • the migration of WordPress sites off Bitnami charts to official images

A developer platform, not just a cluster

A platform is more than somewhere to run containers. Backstage runs as the developer portal, connected to GitHub through a GitHub App, as the front door to the services on the platform. SonarQube is the code-quality gate: product pipelines such as GoGetCV’s run the scanner in CI and report to it. OpenTelemetry is the common language for telemetry, so a new service gets dashboards and alerts by adding a few annotations, not by adding a monitoring stack. pgAdmin, behind SSO, covers day-to-day database work.

What it hosts

The platform isn’t a lab: it runs real products and services in production.

  • My products: GoGetCV with separate dev and prod environments, FreeChessCoach, and the PlatformEngr portal, each deployed by GitOps with its own namespace, secrets and telemetry.
  • AI services:
    • an AI email triage assistant (embeddings, Rspamd spam scoring, Office 365, Gmail or IMAP) behind SSO, with strict NetworkPolicies;
    • a self-hosted AI agent that runs with a Kubernetes service account that has no API token and no RBAC, so it can’t see the cluster it runs on;
    • a self-hosted text-to-speech API.
  • Business apps: Nextcloud, Odoo (ERP), the Zammad helpdesk, ntfy for push notifications, RabbitMQ.
  • Websites: WordPress sites and this blog.
Stack
  • Kubernetes (K3s)
  • Argo CD
  • Helm
  • Kustomize
  • External Secrets
  • Bitwarden Secrets Manager
  • Cloudflare Tunnel
  • Gateway API / Envoy
  • cert-manager
  • oauth2-proxy
  • Microsoft Entra ID
  • Kyverno
  • OpenTelemetry
  • Grafana Alloy
  • Mimir
  • Loki
  • VictoriaMetrics
  • Grafana
  • PostgreSQL
  • Backstage
  • SonarQube