Author SHA1 Message Date
rock 8fa5053aef fix: allow paperless direct LLM access, bypass gateway JWT
- Add paperless namespace to llm-serving NetworkPolicy ingress
- Point paperless-ai CUSTOM_BASE_URL to reasoning-predictor directly
- Gateway JWT auth not yet available for service accounts
- paperless-ai-agent has llm:inference role in Authentik
2026-09-14 08:09:26 +09:00
rock 41e894f79e fix: aggressive 2m cleanup for completed jobs/pods, add PAPERLESS_USERNAME to paperless-ai
- stale-job-cleanup: run every 2m, delete completed/failed jobs+pods after 2m
- paperless-ai: add PAPERLESS_USERNAME=admin (required to find own user ID)
2026-09-14 07:56:05 +09:00
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -52,6 +52,20 @@ spec:
port: 8080 port: 8080
- protocol: TCP - protocol: TCP
port: 9000 port: 9000
# Allow from paperless namespace (paperless-ai auto-tagging)
# Bypasses gateway until service-account JWT token exchange is implemented.
# paperless-ai-agent has llm:inference role in Authentik.
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: paperless
ports:
- protocol: TCP
port: 8080
- protocol: TCP
port: 80
- protocol: TCP
port: 8000
# Allow intra-namespace (pod-to-pod within llm-serving) # Allow intra-namespace (pod-to-pod within llm-serving)
- from: - from:
- podSelector: - podSelector:
+1 -1
View File
@@ -39,7 +39,7 @@ spec:
- name: AI_PROVIDER - name: AI_PROVIDER
value: "custom" value: "custom"
- name: CUSTOM_BASE_URL - name: CUSTOM_BASE_URL
value: "http://api-gateway.api.svc.cluster.local:8080/v1" value: "http://reasoning-predictor.llm-serving.svc.cluster.local:80/v1"
- name: CUSTOM_API_KEY - name: CUSTOM_API_KEY
value: "not-required" value: "not-required"
- name: CUSTOM_MODEL - name: CUSTOM_MODEL