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
|
document management system that transforms your physical documents into a searchable online archive
|
||||||
appVersion: 2.7.0
|
appVersion: 2.7.0
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.4
|
version: 0.1.5
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
|
|
@ -8,15 +8,15 @@ spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ include "paperless-ngx.fullname" . }}-server
|
app: {{ include "paperless-ngx.fullname" . }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: {{ include "paperless-ngx.fullname" . }}-server
|
app: {{ include "paperless-ngx.fullname" . }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "paperless-ngx.fullname" . }}
|
serviceAccountName: {{ include "paperless-ngx.fullname" . }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "paperless-ngx.fullname" . }}-server
|
- name: {{ include "paperless-ngx.fullname" . }}
|
||||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||||
env:
|
env:
|
||||||
- name: PAPERLESS_URL
|
- name: PAPERLESS_URL
|
||||||
|
@ -42,10 +42,16 @@ spec:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ include "paperless-ngx.fullname" . }}-server
|
- name: {{ include "paperless-ngx.fullname" . }}-media
|
||||||
mountPath: "/usr/src/paperless"
|
mountPath: "/opt/paperless/media"
|
||||||
|
readOnly: false
|
||||||
|
- name: {{ include "paperless-ngx.fullname" . }}-data
|
||||||
|
mountPath: "/opt/paperless/media"
|
||||||
readOnly: false
|
readOnly: false
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ include "paperless-ngx.fullname" . }}-server
|
- name: {{ include "paperless-ngx.fullname" . }}-media
|
||||||
persistentVolumeClaim:
|
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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "paperless-ngx.fullname" . }}-server
|
name: {{ include "paperless-ngx.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "paperless-ngx.labels" . | nindent 4 }}
|
{{- include "paperless-ngx.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: {{ include "paperless-ngx.fullname" . }}-server
|
app: {{ include "paperless-ngx.fullname" . }}
|
||||||
ports:
|
ports:
|
||||||
- port: 8000
|
- port: 8000
|
||||||
targetPort: 8000
|
targetPort: 8000
|
|
@ -5,7 +5,8 @@ config:
|
||||||
textRecognitionLanguates: eng nor
|
textRecognitionLanguates: eng nor
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
existingClaim: paperless-ngx-server
|
mediaExistingClaim: paperless-ngx-media
|
||||||
|
dataExistingClaim: paperless-ngx-data
|
||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
dbInit:
|
dbInit:
|
||||||
|
|
Loading…
Reference in a new issue