joseph.whiteaker
homelab.spec.yaml

Enterprise Homelab Infrastructure

A production-grade, bare-metal OpenShift OKD cluster running sidecarless Istio Ambient Mesh, MetalLB L2 load balancing, Keycloak & Microsoft Entra ID single sign-on, OpenBao HA secrets engine, self-hosted Quay container registry, Tailscale container mesh routing, and dedicated Pi-hole DNS virtualization.

Explore the code repository and automation makefile on GitHub.view_okd_repo
OKD SCOS 4.22 (K8s v1.35.5)192.168.0.0/21 LAN SubnetMetalLB Layer 2 Pool (.230-.249)Istio Ambient Mesh (ztunnel + HBONE)Microsoft Entra ID + Keycloak OIDCQuay Registry + Clair ScannerTailscale Subnet & Host Containers

Servers & Hypervisors Architecture Diagram

Visual topology of physical host hypervisors, virtual machines, container stacks, and remote Tailscale mesh.

flowchart TB
  subgraph CloudflareEdge["Cloudflare Edge & Public Internet"]
    CF_DNS["Cloudflare DNS (DNS-01 Challenge)"]
    CF_Tunnel["Cloudflare Zero-Trust Tunnel"]
  end

  subgraph TailscaleMesh["Tailscale Encrypted Mesh Overlay (Tailnet)"]
    TS_MESH["Tailscale WireGuard Mesh Network"]
    PL_CLIENT["Personal Laptop (CentOS Stream 10 ThinkPad)"]
  end

  subgraph SubnetLAN["Private Router Subnet: 192.168.0.0/21 (Gateway: 192.168.1.1)"]
    direction TB

    subgraph DesktopHost["desktop-server / SuperMicro (192.168.1.9) - CentOS Stream 10 (125GB RAM)"]
      direction TB
      DT_KVM["Libvirt / KVM Hypervisor"]
      DT_OKD["OKD 4.22 Converged Master VMs (master-0, master-1, master-2)"]
      DT_TS["Tailscale Container (Mesh Management)"]
      DT_DD["Datadog Host Agent Container"]
      DT_CP["Cockpit Web Admin (Port 443 / TLS)"]
      DT_STOR["LVMS okd-storage Pool (/dev/vdb Raw Disks)"]
      
      DT_KVM --> DT_OKD
      DT_KVM --> DT_STOR
    end

    subgraph LaptopHost["laptop-server / ThinkPad (192.168.1.4) - CentOS Stream 10"]
      direction TB
      LP_KVM["Libvirt / KVM Hypervisor"]
      LP_PI["Pi-hole DNS VM (192.168.1.5 - Fedora Cloud 44)"]
      LP_TS["Tailscale Exit Node & Subnet Router Container (100.110.200.108 - Route: 192.168.1.0/24)"]
      LP_QUAY["Quay Registry Stack (PostgreSQL, Valkey, Registry, Clair Scanner, Nginx Proxy)"]
      LP_BYOC["Datadog BYOC Storage (PostgreSQL 192.168.1.25, MinIO 192.168.1.26)"]
      LP_CP["Cockpit Web Admin (Port 443 / TLS)"]

      LP_KVM --> LP_PI
    end
  end

  PL_CLIENT -->|Mesh Connection| TS_MESH
  DT_TS -->|Mesh Node| TS_MESH
  LP_TS -->|Subnet Router & Exit Node| TS_MESH
  CF_DNS -.->|ACME Validation| DesktopHost
  CF_DNS -.->|ACME Validation| LaptopHost
  CF_Tunnel <==>|Encrypted Tunnel| DT_OKD

Hardware & Virtualization Topology

Redundant physical servers orchestrated via Libvirt/KVM and Red Hat Ansible automation.

192.168.1.9desktop-server

Primary Hypervisor & OKD Compute Server

Dedicated CentOS Stream 10 bare-metal server equipped with 125 GB RAM and 13 CPU cores. Serves as the primary Libvirt/KVM virtualization host running the OKD 3-node converged master cluster.

  • 3 OKD Master VMs (4 vCPUs, 30 GB RAM, 175 GB root disk each)
  • Dedicated raw NVMe data volumes (/dev/vdb, 200 GB per node) for LVMS storage
  • Tailscale Container for administrative mesh access
  • Podman Datadog Host Agent & Cockpit Console on Port 443 with Cloudflare TLS
192.168.1.4laptop-server

Edge Services, DNS & Registry Host

Lenovo ThinkPad laptop running CentOS Stream 10 acting as a dedicated hypervisor and edge gateway for auxiliary containerized infrastructure, DNS services, and remote networking.

  • Pi-hole DNS Server VM (Fedora Cloud 44, static IP 192.168.1.5)
  • Tailscale Exit Node & Subnet Router Container (advertising 192.168.1.0/24 subnet)
  • Quay Registry Stack (PostgreSQL, Valkey cache, Quay core, Clair security scanner, Nginx TLS proxy)

Cluster Nodes, MetalLB VIPs & Ingress Topology Diagram

Detailed flow showing DNS resolution, load balancing, master nodes, and Layer 7 Ingress routing.

flowchart LR
  subgraph DNS["Pi-hole Split DNS (192.168.1.5)"]
    DNS_OKD["okd.conf (api, api-int, *.apps.okd)"]
    DNS_HOME["homelab.conf (*.homelab -> 192.168.1.230)"]
    DNS_QUAY["quay.conf (quay -> 192.168.1.33)"]
  end

  subgraph LoadBalancing["Layer 4/7 Load Balancers"]
    NGINX_LB["Nginx MacVLAN LB (192.168.1.20)"]
    METALLB["MetalLB L2 Pool (192.168.1.230 - .249)"]
  end

  subgraph OKDCluster["OKD 3-Node Converged Master Cluster (OKD 4.22 SCOS / K8s v1.35.5)"]
    M0["master-0 (192.168.1.22)<br/>Rendezvous / Control Plane / Worker<br/>ztunnel + CNI"]
    M1["master-1 (192.168.1.23)<br/>Control Plane / Worker<br/>ztunnel + CNI"]
    M2["master-2 (192.168.1.24)<br/>Control Plane / Worker<br/>ztunnel + CNI"]
  end

  subgraph IngressTier["Service Ingress Gateways & VIPs"]
    ISTIO_GW["Istio Ingress Gateway VIP (192.168.1.230)<br/>*.homelab.kubesoar.com"]
    OKD_ROUTER["OpenShift Router (*.apps.okd.kubesoar.com)"]
    QUAY_NGINX["Quay Nginx Ingress (192.168.1.33)<br/>quay.kubesoar.com"]
  end

  subgraph Applications["Workloads & Services"]
    KEYCLOAK["Keycloak SSO (keycloak.homelab.kubesoar.com)"]
    OPENBAO["OpenBao Vault (openbao.homelab.kubesoar.com)"]
    DEV_SITE["Personal Site Dev (jwhiteaker.homelab.kubesoar.com)"]
    CONSOLE["OKD Console (console-openshift-console.apps.okd)"]
    KIALI["Kiali Mesh UI (kiali.apps.okd)"]
  end

  DNS_OKD --> NGINX_LB
  DNS_HOME --> METALLB
  DNS_QUAY --> QUAY_NGINX

  NGINX_LB -->|Ports 6443, 22623, 80, 443| M0
  NGINX_LB -->|Ports 6443, 22623, 80, 443| M1
  NGINX_LB -->|Ports 6443, 22623, 80, 443| M2

  METALLB --> ISTIO_GW
  ISTIO_GW --> KEYCLOAK
  ISTIO_GW --> OPENBAO
  ISTIO_GW --> DEV_SITE

  NGINX_LB --> OKD_ROUTER
  OKD_ROUTER --> CONSOLE
  OKD_ROUTER --> KIALI

Network Setup & IP Allocation Map

Subnet CIDR 192.168.0.0/21 with router gateway at 192.168.1.1.

IP AddressHostname / TargetSubsystemRole & DeploymentIngress / Access
192.168.1.4laptop-server.kubesoar.comHost / HypervisorCentOS Stream 10 ThinkPad (KVM Host, Cockpit, Quay Stack, Tailscale Subnet Router Container)Direct HTTPS / Port 443 (Certbot TLS)
192.168.1.5pihole.kubesoar.comDNS / NetworkPi-hole DNS Server VM (Fedora Cloud 44, FTL/dnsmasq, Split DNS)DNS Port 53 / Admin Web UI
192.168.1.9desktop-server.kubesoar.comHost / HypervisorCentOS Stream 10 Server (125GB RAM, OKD Master VMs, Tailscale Container, Datadog Host Agent)Direct HTTPS / Port 443 (Certbot TLS)
192.168.1.20api.okd.kubesoar.comKubernetes API Load BalancerNginx Load Balancer (macvlan VIP for API 6443, MachineConfig 22623, Ingress 80/443)Layer 4/7 Nginx Load Balancer
192.168.1.22master-0.okd.kubesoar.comOKD Control PlaneOKD 4.22 SCOS Master Node 0 (Rendezvous / Bootstrap & Worker Node)Internal Node Communication
192.168.1.23master-1.okd.kubesoar.comOKD Control PlaneOKD 4.22 SCOS Master Node 1 (Control Plane & Worker Node)Internal Node Communication
192.168.1.24master-2.okd.kubesoar.comOKD Control PlaneOKD 4.22 SCOS Master Node 2 (Control Plane & Worker Node)Internal Node Communication
192.168.1.26minio.kubesoar.comObservability StorageBYOC MinIO S3 Object Storage (Datadog CloudPrem Archive Store)Internal S3 API Port 9000/9001
192.168.1.33quay.kubesoar.comContainer Registry IngressQuay Nginx Ingress Reverse Proxy with Let's Encrypt TLSHTTPS Port 443 (Certbot DNS-01 TLS)
192.168.1.230*.homelab.kubesoar.comIstio Service MeshIstio Ingress Gateway LoadBalancer VIP (Allocated via MetalLB L2 Pool)Layer 7 Ingress Gateway / Cert-Manager TLS
192.168.1.231 - .249Dynamic MetalLB RangeMetalLB IP PoolDynamic Layer 2 LoadBalancer IP Pool for Workload ServicesMetalLB Layer 2 ARP Advertisements
100.110.200.108laptop-server (Tailscale)Remote Access MeshTailscale Exit Node & Subnet Router Container advertising 192.168.1.0/24Tailscale Encrypted WireGuard Mesh
Tailscale Mesh IPdesktop-server (Tailscale)Remote Access MeshTailscale Node Container providing direct administrative mesh connectivityTailscale Encrypted WireGuard Mesh
Tailscale Mesh IPpersonal-laptop (Tailscale)Remote Access MeshThinkPad Personal Workstation Client for secure remote administration and telemetryTailscale Encrypted WireGuard Mesh

Split DNS & Pi-hole Configuration

Local dnsmasq setup for the LAN.

okd.conf

OKD Core & ETCD Records

Provides forward and reverse PTR resolution for OKD master nodes, API endpoints (api.okd.kubesoar.com & api-int), apps wildcard (*.apps.okd.kubesoar.com), and ETCD SRV records across port 2380.

homelab.conf

Homelab Istio Wildcard

Directs all *.homelab.kubesoar.com requests directly to the MetalLB Layer 2 LoadBalancer VIP (192.168.1.230) fronting the Istio Ingress gateway.

quay.conf

Quay Registry Stack Records

Maps standalone container infrastructure on laptop-server including quay.kubesoar.com (192.168.1.33), PostgreSQL (192.168.1.30), Valkey (192.168.1.31), Quay core (192.168.1.32), and Clair security scanner (192.168.1.34).

Istio Ambient Mesh & MetalLB L2 Ingress

Sidecarless service mesh architecture delivering transparent Layer 4 mTLS and traffic management without sidecar container injection overhead.

Sidecarless Ambient Architecture

Operating Istio in ambient profile separates L4 secure transport from L7 application routing, dramatically lowering memory footprint and eliminating pod restart requirements during mesh updates.

  • ztunnel: Node-level DaemonSet handling mutual TLS via HBONE encapsulation
  • istio-cni: Transparent kernel-level pod traffic redirection into ztunnel
  • OVN-Kubernetes Patch: Configured with routingViaHost: true for health probes
  • Waypoint Proxies: On-demand Layer 7 Envoy instances for advanced routing & auth

MetalLB Layer 2 Load Balancing

MetalLB provides standard Kubernetes LoadBalancer service functionality across the bare-metal environment via Layer 2 ARP advertisements.

  • IPAddressPool: Dedicated range 192.168.1.230-192.168.1.249
  • Istio Ingress Gateway: Statically bound to VIP 192.168.1.230 for *.homelab
  • Dual-Tier Ingress: OpenShift Router (*.apps.okd) alongside Istio Ingress (*.homelab)
  • Cert-Manager & Cloudflare: Automated wildcard TLS issued via DNS-01 ACME

Kiali Mesh UI Dashboard

Dedicated service mesh observability and management console (v2.32.0) providing real-time topology mapping, traffic flow telemetry, and ambient mesh health monitoring.

  • Topology Graph: Real-time service dependency graphs visualizing HBONE & ztunnel traffic
  • Thanos Integration: Connects to cluster monitoring backend for request rates and error latency
  • OpenShift OAuth SSO: RBAC authentication federated via cluster OAuth & Keycloak
  • Ingress Endpoint: Exposed via OpenShift Router at kiali.apps.okd.kubesoar.com

Tailscale Mesh Containers & Subnet Routing

Encrypted point-to-point WireGuard mesh networking connecting desktop-server, laptop-server, and personal workstation with remote subnet routing.

laptop-server Subnet Router

Exit Node & Subnet Router Container

Configured on the ThinkPad host via Ansible (configure-tailscale-laptop.yml). Enables kernel IP forwarding (net.ipv4.ip_forward=1) and trusted firewalld zones, advertising the complete 192.168.1.0/24 subnet alongside full exit-node tunneling (100.110.200.108).

• Subnet: 192.168.1.0/24

• Exit IP: 100.110.200.108

• Capability: LAN routing & secure egress

desktop-server Node Mesh

Compute Node Mesh Container

Automated via Ansible (start-tailscale-supermicro.yml) on the primary SuperMicro compute server. Provides secure, direct administrative SSH, Cockpit remote management, and telemetry streaming directly over the encrypted WireGuard mesh without exposing ports on WAN.

• Service: Tailscale Container Daemon

• Cockpit: desktop-server.kubesoar.com

• Security: End-to-end zero-trust encryption

Personal Laptop Client

ThinkPad Remote Admin Workstation

Personal CentOS Stream 10 ThinkPad laptop connected directly to the Tailscale overlay network. Allows secure out-of-band cluster administration, Kubeconfig access, and local subnet routing from anywhere without port forwarding.

• Client OS: CentOS Stream 10

• Access: Direct Tailnet & Subnet

• Security: Authenticated WireGuard Mesh

Identity Federation & Secrets Management

Centralized authentication and zero-trust secrets lifecycle management across OpenShift, Keycloak, OpenBao, and Microsoft Entra ID.

Keycloak Operator v26.7

Keycloak & Microsoft Entra ID

Multi-instance Keycloak deployment backed by an HA CloudNativePG PostgreSQL cluster. Authenticates upstream users against Microsoft Entra ID with mapped security groups (homelab-user) and provides OIDC federation for cluster apps.

• Realm: homelab

• Ingress: keycloak.homelab.kubesoar.com

• EDP Operator: Declarative CRDs

OpenBao HA (Vault)

OpenBao Secrets Engine

High-Availability OpenBao cluster (3 replicas) backed by a dedicated CloudNativePG PostgreSQL database cluster. Integrated with Keycloak OIDC for single sign-on authentication and automated unseal orchestration.

• Backend: CloudNativePG HA Cluster

• Ingress: openbao.homelab.kubesoar.com

• Auth: Keycloak OIDC Role Mapping

OKD OAuth Integration

Cluster OAuth & RBAC

Native OpenShift cluster authentication federated through Keycloak Homelab Realm and Microsoft Entra ID. Enables zero-touch administrative login via oc login --web and Web Console SSO.

• IdP: Keycloak Homelab Realm

• Callback: oauth-openshift.apps.okd

• Security: Kyverno restricted-v2

Quay Container Registry, Clair Security & Node Pull-Through Caching

Self-hosted container registry with integrated Clair static vulnerability analysis and global cluster pull caching for optimized builds and offline resilience.

Standalone Quay Registry Stack

Deployed via Podman and Ansible on laptop-server, the registry delivers full image lifecycle management, automated Clair vulnerability scanning, robot accounts, and Microsoft Entra ID OIDC SSO.

REGISTRY UI & APIquay.kubesoar.com
SECURITY SCANNERClair v4 Engine
CACHE LAYERValkey (Redis)
METADATA DATABASEPostgreSQL 16
TLS TERMINATIONNginx + Certbot DNS-01
PULL CACHEDockerHub & Quay.io

Cluster Pull-Through Mirroring & Scanning

OKD nodes are configured with ImageDigestMirrorSet and ImageTagMirrorSet CRDs managed by the Machine Config Operator, routing container image pulls through local cache mirrors with Clair static analysis.

  • Clair Static Analysis: Automated CVE indexing and layer vulnerability reporting for pushed container artifacts
  • DockerHub & Quay.io Cache: Transparent local pull acceleration to reduce external WAN bandwidth
  • Global Cluster Pull Secret: Node-level auth synchronization in openshift-config
  • CRI-O Daemon: Automated configuration injection via /etc/containers/registries.conf

Platform Operations, CI/CD & Storage

Automated runners, dynamic local storage, and cluster policy enforcement.

GitHub ARC Controller

Actions Runner Controller

gha-runner-scale-set-controller dynamically provisions ephemeral container runners inside the cluster, executing private CI/CD builds for this site and automation jobs.

LVMS Dynamic Storage

LVM Storage Operator

Dynamic persistent volume provisioning backed by raw /dev/vdb data disks across master nodes. Powers stateful workloads including CloudNativePG PostgreSQL and monitoring.

Datadog Observability

Observability & BYOC Logs

Host-level agent container alongside in-cluster DatadogAgent CR. Ingests logs and telemetry with an on-premises CloudPrem BYOC backend (MinIO & PostgreSQL).

Explore the code repository and automation makefile on GitHub.