Add pvcs for jellyfin.
All checks were successful
ci/woodpecker/push/jellyfin Pipeline was successful
All checks were successful
ci/woodpecker/push/jellyfin Pipeline was successful
This commit is contained in:
parent
d51ab860ab
commit
2c7dcb492d
2 changed files with 51 additions and 0 deletions
48
charts/jellyfin/templates/pvc.yaml
Normal file
48
charts/jellyfin/templates/pvc.yaml
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
---
|
||||||
|
{{- if not .Values.pvc.config.existingClaim -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ include "jellyfin.fullname" . }}-config
|
||||||
|
labels:
|
||||||
|
{{- include "jellyfin.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: {{ .Values.pvc.config.storageClassName | quote }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.pvc.config.storage | quote }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if not .Values.pvc.storage.existingClaim -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ include "jellyfin.fullname" . }}-storage
|
||||||
|
labels:
|
||||||
|
{{- include "jellyfin.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: {{ .Values.pvc.storage.storageClassName | quote }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.pvc.storage.storage | quote }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if not .Values.pvc.cache.existingClaim -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ include "jellyfin.fullname" . }}-cache
|
||||||
|
labels:
|
||||||
|
{{- include "jellyfin.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: {{ .Values.pvc.cache.storageClassName | quote }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.pvc.cache.storage | quote }}
|
||||||
|
{{- end }}
|
|
@ -62,7 +62,10 @@ affinity: {}
|
||||||
pcv:
|
pcv:
|
||||||
config:
|
config:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
|
storage: 1Gi
|
||||||
storage:
|
storage:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
|
storage: 1Gi
|
||||||
cache:
|
cache:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
|
storage: 1Gi
|
||||||
|
|
Loading…
Reference in a new issue