Files
paperless-ngx-deployment/pdf-editor.yaml
T
feedc0de 1ef1963d72
Test and deploy / test (push) Successful in 10s
Test and deploy / deploy (push) Failing after 14s
Give PDF editor its own domain and Authentik app
2026-10-10 15:48:01 +02:00

65 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: pdf-editor
namespace: paperless-ngx
spec:
replicas: 1
selector:
matchLabels: {app: pdf-editor}
template:
metadata:
labels: {app: pdf-editor}
spec:
automountServiceAccountToken: false
containers:
- name: pdf-editor
image: docker.io/stirlingtools/stirling-pdf:3.1.0-ultra-lite@sha256:b19e480530e5812f96f1cddcf467bc0e652a252de98fdd36587b33ea04e75251
ports: [{name: http, containerPort: 8080}]
env:
- {name: SYSTEM_ENABLEANALYTICS, value: "false"}
- {name: SECURITY_ENABLELOGIN, value: "false"}
startupProbe:
httpGet: {path: /, port: http}
periodSeconds: 5
failureThreshold: 60
readinessProbe:
httpGet: {path: /, port: http}
periodSeconds: 10
livenessProbe:
httpGet: {path: /, port: http}
periodSeconds: 30
resources:
requests: {cpu: 100m, memory: 512Mi}
limits: {memory: 2Gi}
---
apiVersion: v1
kind: Service
metadata:
name: pdf-editor
namespace: paperless-ngx
spec:
selector: {app: pdf-editor}
ports: [{name: http, port: 8080, targetPort: http}]
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pdf-editor
namespace: paperless-ngx
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: default-authentik@kubernetescrd
spec:
ingressClassName: traefik
rules:
- host: pdfeditor.brunner.ninja
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: pdf-editor
port: {name: http}