seperate paperless in pods
This commit is contained in:
apps/paperless/base
@ -57,8 +57,10 @@ spec:
|
|||||||
value: "true"
|
value: "true"
|
||||||
- name: PAPERLESS_OCR_ROTATE_PAGES_THRESHOLD
|
- name: PAPERLESS_OCR_ROTATE_PAGES_THRESHOLD
|
||||||
value: "10"
|
value: "10"
|
||||||
|
- name: PAPERLESS_DBHOST
|
||||||
|
value: database
|
||||||
- name: PAPERLESS_REDIS
|
- name: PAPERLESS_REDIS
|
||||||
value: redis://localhost:6379
|
value: redis://redis:6379
|
||||||
- name: PAPERLESS_TIME_ZONE
|
- name: PAPERLESS_TIME_ZONE
|
||||||
value: Europe/Berlin
|
value: Europe/Berlin
|
||||||
- name: PAPERLESS_URL
|
- name: PAPERLESS_URL
|
||||||
@ -68,15 +70,6 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: paperless-secret
|
name: paperless-secret
|
||||||
key: PAPERLESS_SECRET_KEY
|
key: PAPERLESS_SECRET_KEY
|
||||||
- image: docker.io/library/redis:7
|
|
||||||
name: paperless-broker
|
|
||||||
ports:
|
|
||||||
- containerPort: 6379
|
|
||||||
protocol: TCP
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: "0.1"
|
|
||||||
memory: "250M"
|
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: paperless-pvc
|
- name: paperless-pvc
|
||||||
|
@ -2,31 +2,32 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: paperless-webserver
|
app: database
|
||||||
name: paperless-webserver
|
name: database
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
revisionHistoryLimit: 1
|
revisionHistoryLimit: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: paperless-webserver
|
app: database
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: paperless-webserver
|
app: database
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/library/postgres:13
|
- image: docker.io/library/postgres:13
|
||||||
name: paperless-db
|
name: database
|
||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/postgresql/data
|
- mountPath: /var/lib/postgresql/data
|
||||||
name: paperless-pvc
|
name: paperless-pvc
|
||||||
subPath: 716a7a59-c361-48a1-ae89-f935919f7e59/pgdata
|
subPath: 716a7a59-c361-48a1-ae89-f935919f7e59/pgdata
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- name: http
|
||||||
|
containerPort: 5432
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
@ -41,69 +42,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: paperless-secret
|
name: paperless-secret
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
- image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
|
||||||
name: paperless-webserver
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
resources: {}
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /usr/src/paperless/data
|
|
||||||
name: paperless-pvc
|
|
||||||
subPath: 716a7a59-c361-48a1-ae89-f935919f7e59/app
|
|
||||||
- mountPath: /usr/src/paperless/media
|
|
||||||
name: paperless-media
|
|
||||||
- mountPath: /usr/src/paperless/consume
|
|
||||||
name: paperless-pvc
|
|
||||||
subPath: 716a7a59-c361-48a1-ae89-f935919f7e59/consume
|
|
||||||
env:
|
|
||||||
- name: DEBUG
|
|
||||||
value: "false"
|
|
||||||
- name: PAPERLESS_ALLOWED_HOSTS
|
|
||||||
value: steffenillium.de,localhost
|
|
||||||
- name: PAPERLESS_CONSUMER_POLLING
|
|
||||||
value: "20"
|
|
||||||
- name: PAPERLESS_CONSUMER_RECURSIVE
|
|
||||||
value: "true"
|
|
||||||
- name: PAPERLESS_CORS_ALLOWED_HOSTS
|
|
||||||
value: http://localhost:8000
|
|
||||||
- name: PAPERLESS_DBHOST
|
|
||||||
value: localhost
|
|
||||||
- name: PAPERLESS_ENABLE_HTTP_REMOTE_USER
|
|
||||||
value: "true"
|
|
||||||
- name: PAPERLESS_OCR_LANGUAGE
|
|
||||||
value: deu
|
|
||||||
- name: PAPERLESS_OCR_LANGUAGES
|
|
||||||
value: eng deu
|
|
||||||
- name: PAPERLESS_OCR_ROTATE_PAGES
|
|
||||||
value: "true"
|
|
||||||
- name: PAPERLESS_OCR_ROTATE_PAGES_THRESHOLD
|
|
||||||
value: "10"
|
|
||||||
- name: PAPERLESS_REDIS
|
|
||||||
value: redis://localhost:6379
|
|
||||||
- name: PAPERLESS_TIME_ZONE
|
|
||||||
value: Europe/Berlin
|
|
||||||
- name: PAPERLESS_URL
|
|
||||||
value: https://documents.steffenillium.de
|
|
||||||
- name: PAPERLESS_SECRET_KEY
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: paperless-secret
|
|
||||||
key: PAPERLESS_SECRET_KEY
|
|
||||||
- image: docker.io/library/redis:7
|
|
||||||
name: paperless-broker
|
|
||||||
ports:
|
|
||||||
- containerPort: 6379
|
|
||||||
protocol: TCP
|
|
||||||
resources: {}
|
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: paperless-pvc
|
- name: paperless-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: paperless-pvc
|
claimName: paperless-pvc
|
||||||
- name: paperless-media
|
|
||||||
nfs:
|
|
||||||
server: 192.168.178.4
|
|
||||||
path: /mnt/storage/service/paperless/media
|
|
||||||
readOnly: false
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: paperless-ingress
|
name: paperless
|
||||||
namespace: paperless
|
namespace: paperless
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@ -11,5 +11,5 @@ spec:
|
|||||||
- match: Host(`documents.steffenillium.de`)
|
- match: Host(`documents.steffenillium.de`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: paperless-service
|
- name: paperless
|
||||||
port: http
|
port: http
|
||||||
|
11
apps/paperless/base/redis-service.yaml
Normal file
11
apps/paperless/base/redis-service.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: redis
|
||||||
|
port: 6379
|
||||||
|
targetPort: redis
|
||||||
|
selector:
|
||||||
|
app: redis
|
31
apps/paperless/base/redis.yaml
Normal file
31
apps/paperless/base/redis.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: redis
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: redis
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: redis
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: redis:alpine
|
||||||
|
name: redis
|
||||||
|
resources:
|
||||||
|
limits: {}
|
||||||
|
ports:
|
||||||
|
- name: redis
|
||||||
|
containerPort: 6379
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
restartPolicy: Always
|
||||||
|
|
Reference in New Issue
Block a user