mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 23:45:25 +02:00
123 lines
3.5 KiB
YAML
123 lines
3.5 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app paperless
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 2.5.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
dependsOn:
|
|
- name: redis
|
|
namespace: database
|
|
values:
|
|
controllers:
|
|
main:
|
|
strategy: RollingUpdate
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
initContainers:
|
|
init-db:
|
|
image:
|
|
repository: ghcr.io/onedr0p/postgres-init
|
|
tag: 16
|
|
envFrom: &envFrom
|
|
- secretRef:
|
|
name: paperless-secret
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: ghcr.io/paperless-ngx/paperless-ngx
|
|
tag: 2.5.0@sha256:3bebeb2666b8066c7a8bf081b9afb304056223fe7ca667a6410450078c5bdf60
|
|
env:
|
|
COMPOSE_PROJECT_NAME: paperless
|
|
PAPERLESS_CONSUMER_POLLING: "60"
|
|
PAPERLESS_CONSUMER_RECURSIVE: "true"
|
|
PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS: "true"
|
|
PAPERLESS_ENABLE_HTTP_REMOTE_USER: "true"
|
|
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME: HTTP_X_AUTH_REQUEST_EMAIL
|
|
PAPERLESS_OCR_LANGUAGES: fra
|
|
PAPERLESS_OCR_LANGUAGE: fra
|
|
PAPERLESS_PORT: 8000
|
|
PAPERLESS_DBNAME: paperless
|
|
PAPERLESS_REDIS: redis://redis.database.svc.cluster.local.:6379
|
|
PAPERLESS_TASK_WORKERS: 2
|
|
PAPERLESS_TIME_ZONE: "Europe/Paris"
|
|
PAPERLESS_URL: https://paperless.${SECRET_CLUSTER_DOMAIN}
|
|
envFrom: *envFrom
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 3Gi
|
|
limits:
|
|
memory: 7Gi
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: 8000
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
hajimari.io/icon: mdi:barcode-scan
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
name: main
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/shared-documents/paperless/data
|
|
globalMounts:
|
|
- path: /usr/src/paperless/data
|
|
media:
|
|
enabled: true
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/shared-documents/paperless/media
|
|
globalMounts:
|
|
- path: /usr/src/paperless/media
|
|
consume:
|
|
enabled: true
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/shared-documents/paperless/watch
|
|
globalMounts:
|
|
- path: /usr/src/paperless/consume
|
|
export:
|
|
enabled: true
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/shared-documents/paperless/export
|
|
globalMounts:
|
|
- path: /usr/src/paperless/export
|