--- apiVersion: apps/v1 kind: Deployment metadata: name: paperless-ngx namespace: tools spec: strategy: type: Recreate selector: matchLabels: app: paperless-ngx template: metadata: labels: app: paperless-ngx spec: containers: - name: paperless-ngx image: ghcr.io/paperless-ngx/paperless-ngx:2.20.3 readinessProbe: exec: command: - bash - -c - | (echo >/dev/tcp/paperless-ngx-db.tools.svc.cluster.local/6379) initialDelaySeconds: 5 periodSeconds: 5 failureThreshold: 3 ports: - containerPort: 8000 env: - name: PAPERLESS_REDIS value: "redis://paperless-ngx-db.tools.svc.cluster.local:6379" - name: PAPERLESS_URL values: "https://ngx.akshun-lab.cc" - name: PAPERLESS_TIME_ZONE value: "Asia/Kolkata" - name: PAPERLESS_TIKA_ENABLED value: "1" - name: PAPERLESS_TIKA_ENDPOINT value: "http://tika-service.tools.svc.cluster.local:9998" - name: PAPERLESS_TIKA_GOTENBERG_ENDPOINT value: "http://gotenberg-service.tools.svc.cluster.local:3000" volumeMounts: - name: data mountPath: /usr/src/paperless/data subPath: data - name: data mountPath: usr/src/paperless/media subPath: media - name: data mountPath: /usr/src/paperless/export subPath: export - name: data mountPath: /usr/src/paperless/consume subPath: consume volumes: - name: data persistentVolumeClaim: claimName: paperless-longhorn