The init container that chowns the runner PVC to 1000:1000 was left with the runner's uid (1000), so `chown` failed and the arm64/amd64 runners could not start. It now runs as root for that one operation; the runner container itself stays uid 1000. Also label `logging` (warn+audit restricted alongside enforce=privileged) and `cnpg-system` (warn+audit) so every namespace reports PSA violations instead of silently allowing them — cnpg-system's labels live in the vendored operator manifest because Flux owns that Namespace object and strips out-of-band labels.
19 lines
966 B
YAML
19 lines
966 B
YAML
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
|
|
# enforce=privileged silences PSA entirely; warn/audit at restricted keeps
|
|
# the violations visible on every pod creation (and in the audit log).
|
|
pod-security.kubernetes.io/warn: restricted
|
|
pod-security.kubernetes.io/warn-version: latest
|
|
pod-security.kubernetes.io/audit: restricted
|
|
pod-security.kubernetes.io/audit-version: latest
|