Architecture

A high-level map of how the TekGarden platform connects on-prem infrastructure, the cloud edge, and remote access.

Conceptual Diagram

A simplified view of the full flow: from the Git repository to observability, through the GitOps operator, Kubernetes and Docker, on top of the virtualization platform (Proxmox).

TekGarden conceptual architecture

Network Diagram

Sample network topology: VLANs separated for management, users, services and IoT, with a VLAN trunk to the L3 switch and service segmentation to limit lateral movement.

Sample network topology

Network Overview

%%{init: {"flowchart": {"nodeSpacing": 35, "rankSpacing": 40, "wrappingWidth": 180}} }%% flowchart TB subgraph Internet["Internet"] USER["Users
browser"] REMOTE["Laptops / mobile
WireGuard road warrior"] end subgraph Edge["Edge Cloud · Hetzner VPS"] CF["Cloudflare
DNS + CDN + WAF"] PANGOLIN["Pangolin
zero-trust gateway"] FORGEJO["Forgejo
Git · CI · private network"] end subgraph OnPrem["On-Prem · Homelab"] PFSENSE["pfSense Router
firewall + WireGuard"] TRAEFIK_Q["QNAP Traefik
+ CrowdSec"] TRAEFIK_K["k3s Traefik
+ CrowdSec"] QNAP["QNAP NAS
Docker · Backrest"] K8S["k3s
2 clusters · prod + staging"] PROXMOX["Proxmox VE
2 nodes + QDevice"] PBS["Proxmox PBS
local backups"] end subgraph Ext["External services"] B2["Backblaze B2
off-site backups"] ONEPW["1Password
secrets vault"] TG["Telegram
alerts"] EXTDISK["External disk
weekly copy"] end USER -->|HTTPS| CF CF -->|tunnel| PANGOLIN PANGOLIN -->|zero-trust| PFSENSE REMOTE -.->|WireGuard VPN| PFSENSE PFSENSE -->|ingress| TRAEFIK_Q PFSENSE -->|ingress| TRAEFIK_K TRAEFIK_Q --> QNAP TRAEFIK_K --> K8S PROXMOX --> K8S PROXMOX --> QNAP PANGOLIN -.->|optional external access| FORGEJO FORGEJO -.->|GitOps pull| K8S FORGEJO -.->|CI deploy| QNAP PBS -.->|local backup| PROXMOX PBS -.->|sync| B2 QNAP -.->|backups| B2 QNAP -.->|weekly| EXTDISK K8S -.->|op inject| ONEPW K8S -.->|alerts| TG

Flow Description

  1. Public access flows through Cloudflare → Pangolin (zero-trust tunnel gateway on the Hetzner VPS) → pfSense router. pfSense only allows traffic to DNS, the QNAP Traefik (Docker ingress), and the k3s Traefik (Kubernetes ingress): all protected by CrowdSec agents.
  2. Remote access: a WireGuard road warrior VPN on pfSense lets laptops and mobile connect from anywhere. Once connected, you have access to the entire TekGarden network and the Hetzner private network (including Forgejo), as if you were at home.
  3. Forgejo runs on a Hetzner private network: only reachable internally from TekGarden. If external access is needed, Pangolin can expose it on demand.
  4. GitOps runs from Forgejo: FluxCD pulls manifests into the Kubernetes clusters, and CI runners deploy Docker stacks to the QNAP and other Docker hosts.
  5. Proxmox VE (2 nodes + QDevice for quorum) provides the virtualization layer running both Kubernetes clusters and Docker hosts.
  6. Kubernetes runs two HA k3s clusters (production + staging, 12 nodes total).
  7. Docker runs 30+ services across 3 standalone hosts, including the QNAP NAS.
  8. Backups follow a 3-tier strategy:
    • Proxmox PBS: local backups of Proxmox guests, then synced to Backblaze B2.
    • Backrest (Docker on the QNAP): local backups of Docker data, then sent to B2.
    • Offline copy: weekly backup to an external disk.
  9. Observability (Grafana + Prometheus + Loki + Alertmanager) monitors everything and sends alerts to Telegram.
  10. Secrets are centralized in 1Password (injected via op inject), with SOPS/age for GitOps-encrypted manifests and Kyverno for runtime policies.

Tech Stack

LayerTechnology
Edge / TunnelPangolin, Cloudflare
VPNWireGuard (road warrior on pfSense)
Git / CIForgejo (Hetzner private network)
VirtualizationProxmox VE (2 nodes + QDevice)
Orchestrationk3s (2 HA clusters), Docker Compose (3 hosts)
GitOpsFluxCD
IngressTraefik (k3s + Docker), cert-manager, Let’s Encrypt, external-dns
Load BalancerMetalLB
ObservabilityGrafana, Prometheus, Loki, Alertmanager
Secrets1Password, SOPS/age, Kyverno
IaCOpenTofu, Ansible (pull mode)
NetworkpfSense, VLANs, Pi-hole, Cloudflare DNS
SecurityCrowdSec (on all Traefik instances), Kyverno policies, NetworkPolicies
BackupsProxmox PBS → B2, Backrest (QNAP) → B2, weekly offline disk
StorageNVMe local, iSCSI QNAP