How hidalgowhat/littlehomelab-infra works
Purpose and Operating Model
This repository is GitOps desired state for a Raspberry Pi Kubernetes cluster. It defines cluster bootstrap resources, Argo CD application registrations, shared infrastructure configuration, and workload manifests. The primary operational entry point is the root Argo CD application at bootstrap/root-app.yaml.
Bootstrap and GitOps Control Plane
Bootstrap manifests establish the initial reconciliation chain:
• bootstrap/root-app.yaml is the root/app-of-apps entry point.
• bootstrap/infra-argo-app.yaml registers infrastructure management with Argo CD.
• bootstrap/cluster-issuer.yaml provides early certificate issuer setup.
Argo CD is expected to continuously pull this repository and apply the declared application hierarchy rather than workloads being deployed manually.
Argo CD Application Layer
argocd-apps/ is the central orchestration boundary. Each Application points Argo CD at a repository subtree or external chart/source:
• argocd-apps/argocd-config-app.yaml
• argocd-apps/cert-manager-app.yaml
• argocd-apps/cilium-infra-app.yaml
• argocd-apps/monitoring-stack-app.yaml
• argocd-apps/homepage.yaml
• argocd-apps/ping-app.yaml
This separates application registration and sync policy from the Kubernetes manifests they reconcile.
Cluster Infrastructure
Infrastructure services provide shared networking and certificate capabilities before or alongside workloads:
• Certificate-manager configuration is declared in infrastructure/cert-manager/placeholder and applied through argocd-apps/cert-manager-app.yaml.
• Cilium network configuration defines cluster address allocation and L2 advertisement behavior in infrastructure/cilium-configs/ippool.yaml and infrastructure/cilium-configs/l2policy.yaml.
• Certificate issuance configuration is represented in apps/cert-manager-configs/cluster-issuer.yaml.
These resources form critical platform dependencies for ingress, service exposure, and TLS.
Workload Applications
Application manifests are grouped under apps/, with each group owning its Kubernetes resources:
• Homepage includes namespace, RBAC, ConfigMap, Deployment, Service, and Ingress: apps/homepage/deployment.yaml, apps/homepage/service.yaml, apps/homepage/ingress.yaml.
• Ping is a simple reachable workload with runtime configuration: apps/ping/deployment.yaml, apps/ping/service.yaml, apps/ping/ping-ingress.yaml.
• Monitoring contributes Grafana ingress configuration in apps/monitoring/grafana-ingress.yaml.
• Argo CD ingress is declared separately at apps/argocd/ingress.yaml.
Traffic and Certificate Flow
External traffic enters through Kubernetes Ingress resources, then routes to application Services and Deployments. Relevant ingress endpoints include apps/homepage/ingress.yaml, apps/ping/ping-ingress.yaml, and apps/monitoring/grafana-ingress.yaml. Cilium supplies network/L2 exposure policy, while cert-manager and the cluster issuer support TLS certificate provisioning for ingress consumers.
Reconciliation Flow and Boundaries
The primary control flow is: bootstrap manifests → root Argo CD application → child Application CRs in argocd-apps/ → infrastructure or workload directory manifests. Infrastructure configuration is deliberately separated from workload definitions, while apps/ groups workload-local Kubernetes objects. External runtime dependencies are Kubernetes, Argo CD, Cilium, cert-manager, and a monitoring stack with Grafana exposure.
Main entry points: cluster-issuer.yaml Cluster Issuer Config · root-app.yaml Root Application · ingress.yaml Homepage Ingress · ping-ingress.yaml Ping Ingress
Components 18
Bootstrap
Initial GitOps resources.
- Root Application · App-of-apps reconciliation entry point.
bootstrap/root-app.yaml - Infrastructure Registration
bootstrap/infra-argo-app.yaml - Bootstrap Issuer · Early certificate issuer setup.
bootstrap/cluster-issuer.yaml
Argo CD Control
Application registration and reconciliation.
- Argo CD · Continuously reconciles declared applications.
- Child Applications · Registers platform and workload sync targets.
Shared Platform
Networking and certificate capabilities.
- Cilium IP Pool · Defines cluster address allocation.
infrastructure/cilium-configs/ippool.yaml - Cilium L2 Policy · Advertises service addresses on the LAN.
infrastructure/cilium-configs/l2policy.yaml - cert-manager Config
infrastructure/cert-manager/placeholder - Cluster Issuer Config · Certificate issuance configuration for ingress TLS.
apps/cert-manager-configs/cluster-issuer.yaml
Workloads
Ingress-exposed application resources.
- Homepage Ingress
apps/homepage/ingress.yaml - Homepage Service
apps/homepage/service.yaml - Homepage Deployment
apps/homepage/deployment.yaml - Ping Ingress
apps/ping/ping-ingress.yaml - Ping Service
apps/ping/service.yaml - Ping Deployment
apps/ping/deployment.yaml - Grafana Ingress · Exposes the monitoring stack's Grafana endpoint.
apps/monitoring/grafana-ingress.yaml - Argo CD Ingress
apps/argocd/ingress.yaml
Other components
- Kubernetes Cluster
Connections 23
- Argo CD → Root Application: reconciles
- Root Application → Infrastructure Registration: applies
- Root Application → Child Applications: registers
- Root Application → Bootstrap Issuer: applies
- Child Applications → cert-manager Config: syncs
- Child Applications → Cilium IP Pool: syncs
- Child Applications → Cilium L2 Policy: syncs
- Child Applications → Cluster Issuer Config: syncs
- Child Applications → Homepage Ingress: syncs
- Child Applications → Ping Ingress: syncs
- Child Applications → Grafana Ingress: syncs
- Child Applications → Argo CD Ingress: syncs
- Cilium IP Pool → Kubernetes Cluster: configures networking
- Cilium L2 Policy → Kubernetes Cluster: configures exposure
- cert-manager Config → Cluster Issuer Config: provides controller
- Cluster Issuer Config → Homepage Ingress: provisions TLS
- Cluster Issuer Config → Ping Ingress: provisions TLS
- Cluster Issuer Config → Grafana Ingress: provisions TLS
- Homepage Ingress → Homepage Service: routes to
- Homepage Service → Homepage Deployment: selects
- Ping Ingress → Ping Service: routes to
- Ping Service → Ping Deployment: selects
- Argo CD Ingress → Argo CD: exposes