generated from onedr0p/cluster-template
/
helmrelease.yaml
112 lines (112 loc) · 3.49 KB
/
helmrelease.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
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app paperless
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.1.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: storage
values:
controllers:
paperless:
labels:
nfsMount: "true"
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: ghcr.io/paperless-ngx/paperless-ngx
tag: 2.7.2
env:
# Configure application
PAPERLESS_APPS: allauth.socialaccount.providers.openid_connect
PAPERLESS_REDIS_PREFIX: pngx
PAPERLESS_URL: https://paperless.${SECRET_DOMAIN}
PAPERLESS_PORT: "8000"
PAPERLESS_TIME_ZONE: America/Edmonton
PAPERLESS_WEBSERVER_WORKERS: "2"
PAPERLESS_TASK_WORKERS: "2"
# Configure Remote User auth
PAPERLESS_ACCOUNT_ALLOW_SIGNUPS: "false"
PAPERLESS_SOCIALACCOUNT_ALLOW_SIGNUPS: "false"
# Configure folders
PAPERLESS_CONSUMPTION_DIR: /data/nas/consume
PAPERLESS_DATA_DIR: /data/local/data
PAPERLESS_EXPORT_DIR: /data/nas/export
PAPERLESS_MEDIA_ROOT: /data/local/media
# Configure folder importer
PAPERLESS_CONSUMER_POLLING: "60"
PAPERLESS_CONSUMER_RECURSIVE: "true"
PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS: "true"
# Configure OCR
PAPERLESS_OCR_LANGUAGES: nld
PAPERLESS_OCR_LANGUAGE: nld
# Configure redis integration
PAPERLESS_REDIS: redis://dragonfly.database.svc.cluster.local:6379
# Configure user permissions
USERMAP_GID: "65542"
envFrom:
- secretRef:
name: paperless-secret
resources:
requests:
cpu: 15m
limits:
memory: 2048Mi
service:
app:
controller: *app
ports:
http:
port: 8000
ingress:
app:
className: internal
annotations:
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Home
gethomepage.dev/name: Paperless
gethomepage.dev/icon: paperless.png
gethomepage.dev/description: Document OCR Software
gethomepage.dev/widget.type: paperlessngx
gethomepage.dev/widget.url: http://paperless.default:8000
gethomepage.dev/widget.key: "{{HOMEPAGE_VAR_PAPERLESS_TOKEN}}"
hosts:
- host: "{{ .Release.Name }}.${SECRET_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
persistence:
config:
existingClaim: *app
globalMounts:
- path: /data/local
nas:
type: nfs
server: ${NAS_IP:=temp}
path: ${SECRET_NFS_PAPERLESS:=temp}
globalMounts:
- path: /data/nas