add config and books volumes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: calibre-server
|
name: calibre-server
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
description: Chart for Calibre content database
|
description: Chart for Calibre content database
|
||||||
keywords:
|
keywords:
|
||||||
- media
|
- media
|
||||||
|
@@ -49,6 +49,8 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
|
name: calibre-server-config
|
||||||
|
- mountPath: /books
|
||||||
name: calibre-server-books
|
name: calibre-server-books
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.deployment.resources | nindent 12 }}
|
{{- toYaml .Values.deployment.resources | nindent 12 }}
|
||||||
@@ -74,6 +76,9 @@ spec:
|
|||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: calibre-server-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: calibre-server-config
|
||||||
- name: calibre-server-books
|
- name: calibre-server-books
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Values.persistence.books.claimName }}
|
claimName: {{ .Values.persistence.books.claimName }}
|
||||||
|
20
charts/calibre-server/templates/persistant-volume-claim.yaml
Normal file
20
charts/calibre-server/templates/persistant-volume-claim.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: calibre-server-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: calibre-server
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: web
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: helm
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.persistence.config.storageSize }}
|
||||||
|
storageClassName: {{ .Values.persistence.config.storageClassName }}
|
||||||
|
volumeMode: {{ .Values.persistence.config.volumeMode }}
|
@@ -34,5 +34,9 @@ ingressRoute:
|
|||||||
outpost: authentik-proxy-outpost
|
outpost: authentik-proxy-outpost
|
||||||
port: 9000
|
port: 9000
|
||||||
persistence:
|
persistence:
|
||||||
|
config:
|
||||||
|
storageClassName: ceph-block
|
||||||
|
storageSize: 5Gi
|
||||||
|
volumeMode: Filesystem
|
||||||
books:
|
books:
|
||||||
claimName: calibre-server-nfs-storage
|
claimName: calibre-server-nfs-storage
|
||||||
|
Reference in New Issue
Block a user