mirror of
https://github.com/khuedoan/homelab.git
synced 2025-03-09 20:30:04 +07:00
refactor(paperless)!: switch to app-template
Explicitly define PAPERLESS_PORT due to environment variable conflict. https://docs.paperless-ngx.com/troubleshooting/#gunicorn-fails-to-start-with-is-not-a-valid-port-number
This commit is contained in:
parent
6f09545756
commit
11e407e880
@ -2,6 +2,6 @@ apiVersion: v2
|
||||
name: paperless
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
- name: paperless
|
||||
version: 8.5.0
|
||||
repository: https://k8s-at-home.com/charts/
|
||||
- name: app-template
|
||||
version: 2.5.0
|
||||
repository: https://bjw-s.github.io/helm-charts
|
||||
|
12
apps/paperless/templates/secret.yaml
Normal file
12
apps/paperless/templates/secret.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-secret
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: global-secrets
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: paperless.admin
|
@ -1,18 +1,55 @@
|
||||
paperless:
|
||||
app-template:
|
||||
controllers:
|
||||
main:
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/paperless-ngx/paperless-ngx
|
||||
tag: 2.3.3
|
||||
env:
|
||||
PAPERLESS_PORT: 8000
|
||||
PAPERLESS_ADMIN_USER: admin
|
||||
PAPERLESS_URL: https://paperless.khuedoan.com
|
||||
envFrom:
|
||||
- secret: "{{ .Release.Name }}-secret"
|
||||
redis:
|
||||
image:
|
||||
repository: docker.io/library/redis
|
||||
tag: 7.2.4
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
port: 8000
|
||||
protocol: HTTP
|
||||
ingress:
|
||||
main:
|
||||
enabled: true
|
||||
ingressClassName: nginx
|
||||
className: nginx
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
external-dns.alpha.kubernetes.io/target: homelab-tunnel.khuedoan.com
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: 'true'
|
||||
hosts:
|
||||
- host: &host paperless.khuedoan.com
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
service:
|
||||
name: main
|
||||
port: http
|
||||
tls:
|
||||
- secretName: paperless-tls-certificate
|
||||
hosts:
|
||||
- hosts:
|
||||
- *host
|
||||
postgresql:
|
||||
enabled: true
|
||||
secretName: paperless-tls-certificate
|
||||
persistence:
|
||||
data:
|
||||
accessMode: ReadWriteOnce
|
||||
size: 10Gi
|
||||
advancedMounts:
|
||||
main:
|
||||
main:
|
||||
- path: /usr/src/paperless/data
|
||||
subPath: data
|
||||
- path: /usr/src/paperless/media
|
||||
subPath: media
|
||||
|
@ -30,3 +30,10 @@
|
||||
- key: secret
|
||||
length: 32
|
||||
special: false
|
||||
|
||||
# Paperless
|
||||
- name: paperless.admin
|
||||
data:
|
||||
- key: PAPERLESS_ADMIN_PASSWORD
|
||||
length: 32
|
||||
special: true
|
||||
|
Loading…
Reference in New Issue
Block a user