fix(paperless-ngx): Split into two pvc for media and data. Remove -server suffix.
This commit is contained in:
parent
f7fbcc3a1b
commit
76586ece7f
4 changed files with 18 additions and 11 deletions
|
@ -4,7 +4,7 @@ description: |
|
|||
document management system that transforms your physical documents into a searchable online archive
|
||||
appVersion: 2.7.0
|
||||
type: application
|
||||
version: 0.1.4
|
||||
version: 0.1.5
|
||||
maintainers:
|
||||
- name: Tommy Skaug
|
||||
email: tommy@skaug.me
|
||||
|
|
|
@ -8,15 +8,15 @@ spec:
|
|||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ include "paperless-ngx.fullname" . }}-server
|
||||
app: {{ include "paperless-ngx.fullname" . }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ include "paperless-ngx.fullname" . }}-server
|
||||
app: {{ include "paperless-ngx.fullname" . }}
|
||||
spec:
|
||||
serviceAccountName: {{ include "paperless-ngx.fullname" . }}
|
||||
containers:
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-server
|
||||
- name: {{ include "paperless-ngx.fullname" . }}
|
||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||
env:
|
||||
- name: PAPERLESS_URL
|
||||
|
@ -42,10 +42,16 @@ spec:
|
|||
- containerPort: 80
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-server
|
||||
mountPath: "/usr/src/paperless"
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-media
|
||||
mountPath: "/opt/paperless/media"
|
||||
readOnly: false
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-data
|
||||
mountPath: "/opt/paperless/media"
|
||||
readOnly: false
|
||||
volumes:
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-server
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-media
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistence.existingClaim }}
|
||||
claimName: {{ .Values.persistence.mediaExistingClaim }}
|
||||
- name: {{ include "paperless-ngx.fullname" . }}-data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistence.dataExistingClaim }}
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "paperless-ngx.fullname" . }}-server
|
||||
name: {{ include "paperless-ngx.fullname" . }}
|
||||
labels:
|
||||
{{- include "paperless-ngx.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
app: {{ include "paperless-ngx.fullname" . }}-server
|
||||
app: {{ include "paperless-ngx.fullname" . }}
|
||||
ports:
|
||||
- port: 8000
|
||||
targetPort: 8000
|
|
@ -5,7 +5,8 @@ config:
|
|||
textRecognitionLanguates: eng nor
|
||||
|
||||
persistence:
|
||||
existingClaim: paperless-ngx-server
|
||||
mediaExistingClaim: paperless-ngx-media
|
||||
dataExistingClaim: paperless-ngx-data
|
||||
|
||||
initContainers:
|
||||
dbInit:
|
||||
|
|
Loading…
Reference in a new issue