From 07b4b83df4c188cf062f3d750c3f1319264a9a5a Mon Sep 17 00:00:00 2001 From: un-oeil Date: Sat, 7 Nov 2026 21:56:01 +0100 Subject: [PATCH] postgres --- apps/postgres/statefulset.yaml | 7 +++++++ 1 file changed, 7 insertions(+) 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