76 lines
2.2 KiB
YAML
76 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: paperless
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: paperless
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: paperless
|
|
spec:
|
|
containers:
|
|
- name: paperless
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:3.3.0
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
# PAPERLESS_DBPASS, PAPERLESS_SECRET_KEY, PAPERLESS_ADMIN_PASSWORD.
|
|
envFrom:
|
|
- secretRef:
|
|
name: paperless-secrets
|
|
env:
|
|
- name: PAPERLESS_URL
|
|
value: https://paperless.un-oeil.fr
|
|
- name: PAPERLESS_REDIS
|
|
value: redis://valkey:6379
|
|
- name: PAPERLESS_DBHOST
|
|
value: postgres.postgres.svc
|
|
- name: PAPERLESS_DBUSER
|
|
value: paperless
|
|
- name: PAPERLESS_DBNAME
|
|
value: paperless
|
|
# Created on first start only. Change the password in the UI.
|
|
- name: PAPERLESS_ADMIN_USER
|
|
value: admin
|
|
- name: PAPERLESS_OCR_LANGUAGE
|
|
value: fra+eng
|
|
- name: PAPERLESS_TIME_ZONE
|
|
value: Europe/Paris
|
|
# Longhorn volumes don't send inotify events reliably.
|
|
- name: PAPERLESS_CONSUMER_POLLING
|
|
value: "30"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /usr/src/paperless/data
|
|
- name: media
|
|
mountPath: /usr/src/paperless/media
|
|
- name: consume
|
|
mountPath: /usr/src/paperless/consume
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 60
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
# OCR is the memory-hungry part.
|
|
limits:
|
|
memory: 2Gi
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: paperless-data
|
|
- name: media
|
|
persistentVolumeClaim:
|
|
claimName: paperless-media
|
|
- name: consume
|
|
persistentVolumeClaim:
|
|
claimName: paperless-consume
|