apiVersion: v1 kind: Namespace metadata: name: logging labels: app.kubernetes.io/part-of: logging # Alloy is a per-node log collector: it mounts /var/log/pods, # /var/log/journal and the Docker container log tree as hostPath, which the # `baseline` PodSecurity profile rejects outright. The namespace therefore # has to be privileged. The pods themselves still drop ALL capabilities and # run with a read-only root filesystem; the only real privilege is the root # UID needed to read journal files (0640 root:systemd-journal). pod-security.kubernetes.io/enforce: privileged