From e7c75bb9ce818bc7b504f8385a4a24208bcb2e4a Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Tue, 25 Aug 2026 12:26:16 -0700 Subject: [PATCH] fix: disable enableServiceLinks on paperless pod to stop gunicorn crash-loop Service "paperless" made k8s inject PAPERLESS_PORT=tcp://:8000 as a legacy Docker-links env var, which paperless-ngx's own entrypoint also reads for gunicorn's bind port - collided, gunicorn crash-looped ("not a valid port number"), and the pod was 1/1 Running with nothing actually listening (nginx saw 502). --- k8s/apps/paperless/deployment.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/k8s/apps/paperless/deployment.yaml b/k8s/apps/paperless/deployment.yaml index 41b34bc..5d9cc0d 100644 --- a/k8s/apps/paperless/deployment.yaml +++ b/k8s/apps/paperless/deployment.yaml @@ -24,6 +24,13 @@ spec: labels: app: paperless spec: + # Kubernetes injects legacy Docker-links env vars for every Service in + # this namespace (_SERVICE_HOST, _PORT, ...). The Service here + # is named "paperless", so that becomes PAPERLESS_PORT=tcp://:8000 - + # paperless-ngx's own entrypoint reads PAPERLESS_PORT for gunicorn's + # bind address, collides, and gunicorn crash-loops on "not a valid port + # number". Disable the injection instead of renaming the Service. + enableServiceLinks: false nodeSelector: kubernetes.io/hostname: talos-cp-3 containers: