Commit graph homek8s/docs/cluster-overview.md
Author SHA1 Message Date
Lance Walters
c9ec270c22 docs(cluster-overview): Garage ports, firewall, keys, backup after the hardening pass 2026-11-19 16:33:50 -05:00
Lance Walters
c2eb2b2fa3 monitoring: suppress the dead kubelet_volume_stats rules in kubernetes-storage
kube-prometheus-stack's kubernetes-storage group ships five rules; four of
them (both severities of KubePersistentVolumeFillingUp and of
KubePersistentVolumeInodesFillingUp) select kubelet_volume_stats_*. Those
series have no producer here: kubelet v1.36.4 404s on /metrics/volumes on all
three nodes (404s since kubelet 1.34, kubernetes/kubernetes#133847) and
count(kubelet_volume_stats_used_bytes) returns 0 series. The rules loaded fine
and reported health=ok/active=false, which reads as 'no PVC is filling' when
nothing can ever fire.

Disabled per rule via defaultRules.disabled (not by dropping the group): the
group's fifth alert, KubePersistentVolumeErrors, uses kube-state-metrics'
kube_persistentvolume_status_phase, which is live (40 series), so it stays.

Verified by rendering the chart with these values: group kubernetes-storage
now contains exactly one rule.
2026-10-27 02:22:46 -04:00
Lance Walters
e572f84b0b monitoring: replace the dead kubelet_volume_stats alerts with runner-scoped disk rules
kubelet_volume_stats_* was an ALPHA metric set served from kubelet's
/metrics/volumes endpoint; that endpoint returns 404 on every node of this
cluster (kubelet v1.36.4 — upstream loss in 1.34, kubernetes#133847), and
/metrics carries no volume-stats series. RunnerDindPvcHighWatermark and
RunnerDindPvcCritical therefore could never fire while showing as healthy.

Per-PVC bytes are not measurable here and no scrape config can change that,
so the pair is replaced by RunnerDindDiskHighWatermark (80%) and
RunnerDindDiskCritical (90%): root-filesystem usage on nodes that actually
run a forgejo-runner pod, which is the filesystem holding the dind data-root
under /opt/local-path-provisioner. New arm64 dind PVCs are covered as soon
as their runner is scheduled; nodes without runners (linode) do not
duplicate the generic disk-capacity group.

Also corrects the cause in docs, the dashboard notes and the prune CronJob
comment (it is not a hostPath quirk, the endpoint is gone).
2026-10-27 02:07:07 -04:00
Lance Walters
e97c6894c4 docs: nightly disk reclamation — daemons, retention, cap mechanism, alerts
Records the two corrected premises (capacity flags are a no-op on buildx
0.20.1; kubelet exports no volume_stats_* on this cluster) and the one-line
manual run.
2026-10-27 01:51:06 -04:00
Lance Walters
53e85ca6e4 docs: Grafana persistence + admin-password ownership and recovery path
Records what now persists (sqlite DB on a 5Gi local-path PVC, pinned
GF_SECURITY_SECRET_KEY), that provisioned dashboards still win over UI edits,
that the Secret is only the first-boot seed (the DB owns the password after
that), the reset-admin-password recovery path, and the one-off rollingUpdate
patch the Recreate transition needed.
2026-10-27 01:04:12 -04:00
Lance Walters
39d707236c docs: Hubble UI on 8084, verified end-to-end by bare IP; correct the 8084 comment
- internal-wireguard-services §10: Hubble verification log (HR Ready, rendered
  hubble.metrics list, relay connected to all 3 agents, 23/23 scrape targets up,
  flow/drop/TCP/ICMP/PolicyVerdict counters non-zero, headless-browser service
  map with 64.7 flows/s and 3/3 nodes, LAN + internet negatives, regression).
  Records the port cycle: 8082 is held on rpi by the leftover handyman-site
  Docker container (and 8083 by its nginx), so the listener must be checked free
  on EVERY cilium-envoy node, and notes that only 10.10.0.2 answers (Envoy on a
  node without the backend 503s after 5s).
- gateway-hubble-ui.yaml: stop asserting a bind error for 8084 — 8084 was
  verified free on both nodes and binds; the comment now explains the rule
  without claiming a false fact.
- cluster-overview: internal gateway section + namespaces (monitoring, hubble
  pods, the second gateway).
2026-10-27 00:51:43 -04:00
Lance Walters
7ca85669b2 hubble: bare-IP listener (8082) for the UI + WireGuard-only firewall on both gateway nodes
Operator addendum: internal services must be reachable by bare IP+port, because
a phone cannot edit /etc/hosts. A hostname-scoped route does not match
`Host: 10.10.0.2:8081` (Envoy 404), and a hostname-less `PathPrefix /` cannot
share a listener with it — so hubble-ui gets its own listener (`hubble-ui`, port
8082) with a route that sets no hostnames. http://10.10.0.2:8082/ and
http://hubble.lab.internal:8082/ both hit the UI.

Firewall: siriussec nft table now matches `dport { 8081, 8082 }` and starts with
`destroy table` so re-running the unit replaces (not appends) the rules; the rpi
ufw script is generalised to a PORTS list and inserts each port above the LAN
catch-all. Both hosts applied and verified before the listener was programmed.

docs: internal gateway section, host-firewall README.
2026-10-27 00:35:16 -04:00
Lance Walters
baac2419e4 docs: record the node-io guard as the etcd/jind io-isolation remedy, with measurements 2026-10-26 17:41:17 -04:00
Lance Walters
3cfb89fa2c docs: record the CNPG leader-election fix and its real cause
§9.2 now states the cause as shared-NVMe contention from CI build I/O (etcd
wal_fsync 158 >8.192s / 2,518 >2.048s of 14.81M, worst stall 10.39s, every
stall hour carrying CI I/O) and cites d5d1d28 for the widened window plus the
operator's move into Flux. The static-pod controller-manager/scheduler
restarts and the one CI-unexplained stall hour are called out as open.
Refreshes the live Flux revision, the Kustomization count and the operator pod.
2026-10-26 15:41:35 -04:00
Lance Walters
4ababa45eb docs: current-state cluster overview (topology, WireGuard, Garage, workloads) 2026-10-26 15:18:20 -04:00