67 lines
2 KiB
YAML
67 lines
2 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: global-regcred
|
|
containers:
|
|
- name: {{ .Release.Name }}
|
|
image: {{ .Values.image }}
|
|
env:
|
|
- name: PAPERLESS_TIME_ZONE
|
|
value: Europe/Berlin
|
|
- name: PAPERLESS_OCR_LANGUAGE
|
|
value: deu
|
|
- name: PAPERLESS_SECRET_KEY
|
|
value: {{ .Values.secretkey }}
|
|
- name: PAPERLESS_ADMIN_USER
|
|
value: admin
|
|
- name: PAPERLESS_ADMIN_PASSWORD
|
|
value: {{ .Values.adminpassword }}
|
|
- name: PAPERLESS_URL
|
|
value: {{ .Values.url | printf "https://%s" }}
|
|
- name: PAPERLESS_REDIS
|
|
value: redis://:{{ .Values.redis.auth.password }}@paperless-redis-master:6379
|
|
- name: PAPERLESS_DBENGINE
|
|
value: mariadb
|
|
- name: PAPERLESS_DBHOST
|
|
value: paperless-mariadb
|
|
- name: PAPERLESS_DBUSER
|
|
value: {{ .Values.mariadb.auth.username }}
|
|
- name: PAPERLESS_DBPASS
|
|
value: {{ .Values.mariadb.auth.password }}
|
|
- name: PAPERLESS_DBPORT
|
|
value: "3306"
|
|
- name: PAPERLESS_PORT
|
|
value: "8000"
|
|
ports:
|
|
- containerPort: 8000
|
|
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: {{ .Release.Name }}-data |