-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvalues.yaml
213 lines (208 loc) · 6.14 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.4.0/charts/library/common/values.schema.json
app-template:
configMaps:
config:
data:
PAPERLESS_TIME_ZONE: Europe/Paris
PAPERLESS_PORT: "{{ .Values.service.main.ports.http.port }}"
PAPERLESS_URL: "https://{{ (first .Values.ingress.main.hosts).host }}"
PAPERLESS_DBENGINE: postgresql
PAPERLESS_ENABLE_HTTP_REMOTE_USER: "true"
PAPERLESS_OCR_LANGUAGE: fra+eng
PAPERLESS_TASK_WORKERS: "2"
PAPERLESS_THREADS_PER_WORKER: "4"
PAPERLESS_REDIS: redis://{{ .Release.Name }}-redis-master
PAPERLESS_LOGOUT_REDIRECT_URL: "https://{{ (first .Values.ingress.main.hosts).host }}/oauth2/sign_out"
# Paperless keeps the original file
PAPERLESS_OCR_USER_ARGS: '{"invalidate_digital_signatures": true}'
controllers:
main:
type: deployment
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: ghcr.io/paperless-ngx/paperless-ngx
tag: 2.14.6
ports:
- name: http
containerPort: 8000
envFrom:
- configMapRef:
identifier: config
env:
PAPERLESS_DBHOST:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: host
PAPERLESS_DBNAME:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: dbname
PAPERLESS_DBUSER:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: user
PAPERLESS_DBPASS:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: password
probes:
liveness:
enabled: true
custom: true
spec:
httpGet:
port: http
path: /
readiness:
enabled: true
custom: true
spec:
httpGet:
port: http
path: /
backup:
image:
repository: ghcr.io/paperless-ngx/paperless-ngx
tag: 2.14.6
envFrom:
- configMapRef:
identifier: config
command:
- /bin/sh
- -c
- |
while true; do
echo "Starting backup"
python3 /usr/src/paperless/src/manage.py document_exporter /usr/src/paperless/export -d -f -p -sm -z
sleep 86400
done
env:
PAPERLESS_DBHOST:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: host
PAPERLESS_DBNAME:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: dbname
PAPERLESS_DBUSER:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: user
PAPERLESS_DBPASS:
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-cnpg-cluster-app"
key: password
service:
main:
controller: main
ports:
http:
port: 8000
ingress:
main:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/target: home.terence.cloud
nginx.ingress.kubernetes.io/proxy-body-size: 100m
# nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
# nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
# nginx.ingress.kubernetes.io/configuration-snippet: |
# auth_request_set $auth_header $upstream_http_x_auth_request_user;
# proxy_set_header 'remote-user' $auth_header;
gethomepage.dev/enabled: "true"
gethomepage.dev/name: "Paperless"
gethomepage.dev/description: "A document management system."
gethomepage.dev/group: "Media"
gethomepage.dev/icon: "paperless-ngx"
hosts:
- host: paperless.terence.cloud
paths:
- path: /
pathType: ImplementationSpecific
service:
identifier: main
port: http
tls:
- secretName: paperless-tls
hosts:
- paperless.terence.cloud
persistence:
data:
enabled: true
retain: true
globalMounts:
- path: /usr/src/paperless/data
accessMode: ReadWriteOnce
size: 1Gi
media:
enabled: true
retain: true
globalMounts:
- path: /usr/src/paperless/media
accessMode: ReadWriteOnce
size: 8Gi
export:
enabled: true
retain: true
globalMounts:
- path: /usr/src/paperless/export
accessMode: ReadWriteOnce
size: 1Gi
consume:
enabled: true
retain: true
globalMounts:
- path: /usr/src/paperless/consume
accessMode: ReadWriteOnce
size: 4Gi
redis:
enabled: true
auth:
enabled: false
username: ""
master:
persistence:
enabled: true
labels:
velero.io/exclude-from-backup: "true"
replica:
replicaCount: 0
pdb:
create: false
cnpg-cluster:
type: postgresql
mode: standalone
enablePDB: false
cluster:
enablePDB: false
instances: 1
imageName: "ghcr.io/cloudnative-pg/postgresql:16.3"
storage:
size: 10Gi
walStorage:
enabled: true
resources: {}
primaryUpdateMethod: switchover
primaryUpdateStrategy: unsupervised
logLevel: "info"
roles: []
monitoring:
enabled: true
podMonitor:
enabled: true
initdb:
database: paperless-ngx