76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
---
|
|
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.2
|
|
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
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: PAPERLESS_URL
|
|
- name: PAPERLESS_CSRF_TRUSTED_ORIGINS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: PAPERLESS_CSRF_TRUSTED_ORIGINS
|
|
- name: PAPERLESS_CORS_ALLOWED_HOSTS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: PAPERLESS_URL
|
|
- 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
|