Kubeadm cluster on bare metal and one cloud node. Flux CD, Cilium, Gateway API. Manifests for the public sites live here.
- Python 60.8%
- Shell 35.3%
- Dockerfile 3.5%
- Makefile 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Dashboards (uid forgejo-runners, cnpg-postgres, home-lab-workloads) live as ConfigMaps generated from monitoring/controllers/home/dashboards/build.py and are loaded by the kube-prometheus-stack grafana sidecar. Postgres was not scraped at all before this: add a hand-written PodMonitor per CNPG cluster (release=kube-prometheus-stack, which is what this Prometheus's podMonitorSelectorNilUsesHelmValues default requires) plus spec.monitoring.customQueriesConfigMap on both Clusters. enablePodMonitor stays false — deprecated in CNPG 1.27 and it gives no control over labels. pg-actions-queries.yaml adds the Forgejo Actions queue/outcome/last_online metrics that only the forgejo database can answer. prometheus-node-exporter is no longer pinned to siriussec: the arm64 runner's jobs are host containers on rpi, so the Pi's root filesystem is the disk that matters there and kubelet cannot see it. docs/monitoring-dashboards.md documents the PromQL, the exporter GRANT and the known unknowns (arm64 per-job breakdown, hostPath PVs have no kubelet volume stats, single-instance replication, no backups). |
||
| apps | ||
| clusters | ||
| docs | ||
| infographic/home-k8s-mesh | ||
| infrastructure | ||
| monitoring/controllers/home | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
HomeK8s
Home Kubernetes cluster (kubeadm), same GitOps layout as lab/.
Flux CD will take over once Forgejo is back. Until then apply with kustomize:
kubectl apply -k infrastructure/home
Cluster
| Node | WG IP | Roles | Notes |
|---|---|---|---|
| siriussec | 10.10.0.2 | control-plane, worker | default scheduling |
| rpi | 10.10.0.1 | traffic, worker | dedicated=network:PreferNoSchedule |
- CNI: Cilium 1.18.13, kube-proxy replacement, Gateway API hostNetwork on
dedicated=network - Overlay: WireGuard
10.10.0.0/24(API only on WG) - Ingress: Cloudflare tunnel →
127.0.0.1:8080on rpi → Gatewaygateway-system/public - Storage: local-path on siriussec (
/opt/local-path-provisioner)
Pin traffic / light workloads to the Pi:
nodeSelector:
dedicated: network
Layout
homek8s/
├── apps/
│ ├── base/ # app definitions
│ └── home/ # overlay applied to this cluster
├── clusters/
│ └── home/ # Flux Kustomizations (bootstrap later)
│ ├── flux-system/ # flux bootstrap (after Forgejo)
│ ├── apps.yaml
│ ├── infrastructure.yaml
│ └── monitoring.yaml
├── infrastructure/
│ ├── home/ # kubectl apply -k target (no HelmRelease)
│ ├── networking/
│ │ ├── cilium/ # HelmRelease for Flux
│ │ └── gateway/ # Cilium Gateway API
│ ├── storage/ # local-path provisioner
│ ├── controllers/
│ └── databases/
└── monitoring/
Apply (now)
kubectl apply -k infrastructure/home
That installs storage + the public Gateway. Cilium is already running; its HelmRelease is only for Flux.
Flux (later)
When Forgejo is up:
flux bootstrap git \
--url=ssh://[email protected]:222/sirius/homek8s.git \
--branch=master \
--path=clusters/home
clusters/home/*.yaml already point at ./apps/home, ./infrastructure/home, and ./monitoring/controllers/home.