infra(logging): Loki single-binary + Alloy DaemonSet with 192h bounded retention (F4) #52
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_34ddaa83"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Finding F4 of the 2026-11-27 cluster-netsec audit: there was no log storage anywhere. Pod logs existed only as kubelet files under
/var/log/podsand died with the pod — ~8 h of history for the pods that matter, nothing to scan for abnormalities.This adds a bounded log store:
local-pathPVC pinned tosiriussec,retention_period: 192hwith the compactor deleting on filesystem, ingest rate limits./var/log/pods,/var/log/journaland the Pi's docker json logs (registry + Garage, which are not pods).cilium-agenton linode, 31 d registry log on rpi) instead of starting the 7-day clock at deploy time.Loki(uidloki) through the existing sidecar, a ServiceMonitor, and an ingest-rate guard rule.docs/logging.md— design, the measured bytes/day, the 8-day projection, runbook.Acceptance
forgejo,siriusdevops,sirius-growth,piedmont,osint,kube-systemall have series. Retention is 192 h.docs/logging.md):{namespace="kube-system", pod="cilium-bvqsg"}at2026-11-20T05:16:26Z; journals return2026-11-20T05:15:48Z(siriussec) and05:15:45Z(linode).infrastructure/logging/+clusters/homek8s/logging.yaml(dependsOn infrastructure, monitoring).Nothing touches ELK/OpenSearch/Wazuh, no SIEM, and
containerLogMaxSizeis left alone.Notes
The
loggingnamespace isenforce: privilegedfor one reason:baselinerejects hostPath volumes, which a node log collector cannot do without. All containers still drop ALL caps, run read-only-rootfs withallowPrivilegeEscalation: false.