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 |
|---|---|---|
Shared-NVMe contention on the T480, not a uniformly slow disk: etcd WAL fsync has 158 samples >8.192s over 41d while 99.9% land <=32ms, and all 8 hours with >=2s stalls have CI build I/O on the same PM991 NVMe (worst single stall 10.39s, dind data-root and forgejo-data share /dev/nvme0n1p3 with the WAL). Each stall blows the operator's 5s lease-renewal HTTP timeout and controller-runtime fatals with "leader election lost" (223 restarts in 45d). Lease 60s / renew 45s rides out a 10.4s stall instead of restarting the operator; safe at replicas: 1, there is no second holder to split-brain against. CNPG's flags are integer seconds and it has no resource-lock-timeout flag, unlike the Cilium operator. The operator was installed by hand, so a kubectl patch would be lost on the next reinstall. Vendor the pinned 1.30.0 release manifest under infrastructure/databases/base and own it with its own Flux Kustomization (prune: false -- the bundle carries the 11 CNPG CRDs, and pruning those would delete every Cluster). The patch also declares the pre-existing live deltas that upstream does not ship: the overlay API env (10.10.0.2:6443), the 500m/512Mi limits and the 3min startup probe -- adopting upstream raw would have silently reverted all three. |
||
| 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.