This commit is contained in:
parent
8b465d3284
commit
e842810740
12
paperless-ngx/paperless-ngx-consume-pvc.yaml
Normal file
12
paperless-ngx/paperless-ngx-consume-pvc.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-ngx-consume-pvc
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
12
paperless-ngx/paperless-ngx-data-pvc.yaml
Normal file
12
paperless-ngx/paperless-ngx-data-pvc.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-ngx-data-pvc
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
94
paperless-ngx/paperless-ngx-deployment.yaml
Normal file
94
paperless-ngx/paperless-ngx-deployment.yaml
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: paperless-ngx
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: paperless-ngx
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: paperless-ngx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: paperless-ngx
|
||||||
|
image: ghcr.io/paperless-ngx/paperless-ngx:2.3.3
|
||||||
|
env:
|
||||||
|
- name: PAPERLESS_URL
|
||||||
|
value: "https://paperless.clortox.com"
|
||||||
|
- name: PAPERLESS_TIME_ZONE
|
||||||
|
value: America/New_York
|
||||||
|
- name: PAPERLESS_ADMIN_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-config
|
||||||
|
key: ADMIN_NAME
|
||||||
|
- name: PAPERLESS_ADMIN_MAIL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-config
|
||||||
|
key: ADMIN_EMAIL
|
||||||
|
- name: PAPERLESS_ADMIN_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-config
|
||||||
|
key: ADMIN_PASSWORD
|
||||||
|
|
||||||
|
#- name: PAPERLESS_ENABLE_HTTP_REMOTE_USER
|
||||||
|
# value: "true"
|
||||||
|
#- name: PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME
|
||||||
|
# value: "HTTP_REMOTE_USER"
|
||||||
|
#- name: PAPERLESS_LOGOUT_REDIRECT_URL
|
||||||
|
# value: ""
|
||||||
|
|
||||||
|
- name: PAPERLESS_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-config
|
||||||
|
key: SECRET
|
||||||
|
# Secret because the URI contains the password
|
||||||
|
- name: PAPERLESS_REDIS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-config
|
||||||
|
key: REDIS_URL
|
||||||
|
- name: PAPERLESS_DBENGINE
|
||||||
|
value: "postgresql"
|
||||||
|
- name: PAPERLESS_DBHOST
|
||||||
|
value: postgresql.postgresql-system.svc.cluster.local
|
||||||
|
- name: PAPERLESS_DBPORT
|
||||||
|
value: "5432"
|
||||||
|
- name: PAPERLESS_DBUSER
|
||||||
|
value: "paperless"
|
||||||
|
- name: PAPERLESS_DBPASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-config
|
||||||
|
key: POSTGRES_PASS
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
volumeMounts:
|
||||||
|
- name: paperless-consume
|
||||||
|
mountPath: "/usr/src/paperless/consume"
|
||||||
|
- name: paperless-media
|
||||||
|
mountPath: "/usr/src/paperless/media"
|
||||||
|
- name: paperless-export
|
||||||
|
mountPath: "/usr/src/paperless/export"
|
||||||
|
- name: paperless-data
|
||||||
|
mountPath: "/usr/src/paperless/data"
|
||||||
|
volumes:
|
||||||
|
- name: paperless-consume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-ngx-consume-pvc
|
||||||
|
- name: paperless-media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-ngx-media-pvc
|
||||||
|
- name: paperless-export
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-ngx-export-pvc
|
||||||
|
- name: paperless-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-ngx-data-pvc
|
12
paperless-ngx/paperless-ngx-export-pvc.yaml
Normal file
12
paperless-ngx/paperless-ngx-export-pvc.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-ngx-export-pvc
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
12
paperless-ngx/paperless-ngx-media-pvc.yaml
Normal file
12
paperless-ngx/paperless-ngx-media-pvc.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-ngx-media-pvc
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 30Gi
|
13
paperless-ngx/paperless-ngx-service.yaml
Normal file
13
paperless-ngx/paperless-ngx-service.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: paperless-ngx-service
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: paperless-ngx
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8000
|
19
paperless-ngx/sealed-secret.yaml
Normal file
19
paperless-ngx/sealed-secret.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: paperless-config
|
||||||
|
namespace: paperless-ngx-ns
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
ADMIN_EMAIL: AgDX1IzNrK1moCA/DJMU9TwKdn+vQrfK9F3lHMwisFrruPRh9yLkv8X3AWNzAL4KG+sINa4xbUaGn73Di2nto3MrOkBgE8sMDJ54sYGlmQtWpn0zNWpLcmOzpJVxtiTJXyCGMCV8S87z53w+HAsYMv7ReuKghUa9ZlLjCi243chXDV1hpZnwh5uczKsTFY+I+c5zzYh6GhykJPDlyGoa80YsWU8VwO7jIz75eUWiGlCfADtUCA1T9yfrydBCrroGVyYBxiKhcBuqyeHzKGGF9mfuIXeMhWl1Idpr4Ohp2DJLS2Nm16O0S3jh5SiWpQR6fiEHa7q9PKysnp4PGF577iSGEQFQW40TdnJ7dKUP8pgOMWBVI1C1CD+8DktoAx1KBFopfxvvlBnSf/+asPDcDlIbGc/CSkVeJVnvwhZsifXBhLeUTelAtpUnEZ3XCKEEqIiw/ICnVFG3oiuZN9bAM1FwEsRW0Vgh5VOel6q2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x+E05gz7dDct8lNpjI0FVFq0M9BAV0djT3ECU8kqViy717ZrCi8J6m64RrR26tErzMouFjgXpMqw+jNttnOsz32ycXUa1DAK9Z8h7FK16L1nV+1Dbt30AcA54wEJFb4nsCeeUl0b04N+OlwNnveUI4xAmo9FmB1txTYw=
|
||||||
|
SECRET: AgB7kULin1dJwJHRnJUXX1YZHqx6Fc8JF7Rd3NWRYI5sqpRLHLVHZr19kf2p3EPFuoCBK4jcOo5+sg9L3IQgefSOtvTqjazl9Zcuv4w0LJKyX5+PJaqe2FFINoM+We+DispCNRWgnWFDokA2RH6J9htKpQvXscAlRhsEdERaRmrn24g69aryDeJ4EVXh0yOQK73kzGkurnod/caybunZUmtL3bQkMbWW5OTphxoyOMLolPV5JT4GooR0yGPgF/0tLvcph2Ys8zi2PjWVcqvdNGjMrrcT/HrA04ucFFLbhipl7e4MK5CfhzEfA435x6ujJySbIpYdgw0gTWti/WXXfr2SrZordj2bXVvZ237BpKdvyqOnaNV4QVC0yUHKfhSfEcPBJL3Q79w3HRpTmmd+TKpjfFgYGU0KPDKHmeIhiRng5OEDYiOMUrfnBBcXn+fILV0HeuQa8wHNRjIQ++GOfZ5dwbO1BtkInawNIOCzdkLa4C8c/rcLF46dzvhcHDC5t6jlA4fAGkZhlVRwJDmHwPubEuk3vKhXCbDQjlV1vKp7qnscEn4zXGUDVbGundg25ddDH3UCuMazEs7hvOut3WXh/vBXlMVG3k4hL0qubJQM0AhEs8X2vAo0X0tKEkKNqh2D1oWfjFWUT96LBlyfNa2FRlDW6rR1rfr/FKelFonpEY4afy5BIIyrj/RHWdwlliL0DO6MMTEWJxuOyOi/HXh0FAgN7mDQk4n0kttzdVdue/s6aKGltlMRUvH/fugOZNQya5uPrTj2QxB6qmU9dHalbfApdGIMHhdRFrjW/hTjQFLNO+RvMu1wgpB0/s5qDqSD1DqAkSwjkYQv3VjUbyj6Jc9RV192X4DsAJkPJxJKQQ==
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: paperless-config
|
||||||
|
namespace: paperless-ngx-ns
|
Loading…
Reference in New Issue
Block a user