diff --git a/apps/postgres/statefulset.yaml b/apps/postgres/statefulset.yaml index ad0b3b6..7cc74ac 100644 --- a/apps/postgres/statefulset.yaml +++ b/apps/postgres/statefulset.yaml @@ -16,6 +16,13 @@ spec: # No _PORT=tcp://... env vars: apps like Paperless read # PAPERLESS_PORT as their own setting and crash. enableServiceLinks: false + # Start directly as postgres (uid/gid 70 in the alpine image): the + # entrypoint then skips gosu, which spins forever at 100% CPU on the + # k3s nodes since their 2026-11-07 kernel upgrade. No fsGroup: it would + # add group permissions to PGDATA and postgres refuses anything but 0700/0750. + securityContext: + runAsUser: 70 + runAsGroup: 70 containers: - name: postgres image: postgres:17.11-alpine