diff --git a/charts/jellyfin/README.md b/charts/jellyfin/README.md index e548b24..d402d83 100644 --- a/charts/jellyfin/README.md +++ b/charts/jellyfin/README.md @@ -90,11 +90,13 @@ helm install my-jellyfin jellyfin/jellyfin -f values.yaml | persistence.config.enabled | bool | `true` | set to false to use emptyDir | | persistence.config.size | string | `"5Gi"` | | | persistence.config.storageClass | string | `""` | If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. | -| persistence.media.accessMode | string | `"ReadWriteOnce"` | | -| persistence.media.annotations | object | `{}` | Custom annotations to be added to the PVC | +| persistence.media.accessMode | string | `"ReadWriteOnce"` | PVC specific settings, only used if type is 'pvc'. | +| persistence.media.annotations | object | `{}` | Custom annotations to be added to the PVC, only used if type is 'pvc'. | | persistence.media.enabled | bool | `true` | set to false to use emptyDir | -| persistence.media.size | string | `"25Gi"` | | -| persistence.media.storageClass | string | `""` | If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. | +| persistence.media.hostPath | string | `""` | Path on the host node for media storage, only used if type is 'hostPath'. | +| persistence.media.size | string | `"25Gi"` | PVC specific settings, only used if type is 'pvc'. | +| persistence.media.storageClass | string | `""` | If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. Only used if type is 'pvc'. | +| persistence.media.type | string | `"pvc"` | Type of volume for media storage (pvc, hostPath, emptyDir). If 'enabled' is false, 'emptyDir' is used regardless of this setting. | | podAnnotations | object | `{}` | Annotations to add to the pod. | | podLabels | object | `{}` | Additional labels to add to the pod. | | podSecurityContext | object | `{}` | Security context for the pod. | diff --git a/charts/jellyfin/templates/persistentVolumeClaim.yaml b/charts/jellyfin/templates/persistentVolumeClaim.yaml index c2abd23..709436d 100644 --- a/charts/jellyfin/templates/persistentVolumeClaim.yaml +++ b/charts/jellyfin/templates/persistentVolumeClaim.yaml @@ -21,7 +21,7 @@ spec: {{- end }} {{- end }} -{{- if and .Values.persistence.media.enabled (not .Values.persistence.media.existingClaim) }} +{{- if and .Values.persistence.media.enabled (eq .Values.persistence.media.type "pvc") (not .Values.persistence.media.existingClaim) }} --- apiVersion: v1 kind: PersistentVolumeClaim diff --git a/charts/jellyfin/values.yaml b/charts/jellyfin/values.yaml index 7422337..0d71148 100644 --- a/charts/jellyfin/values.yaml +++ b/charts/jellyfin/values.yaml @@ -184,6 +184,11 @@ persistence: media: # -- set to false to use emptyDir enabled: true + # -- Type of volume for media storage (pvc, hostPath, emptyDir). If 'enabled' is false, 'emptyDir' is used regardless of this setting. + type: pvc + # -- Path on the host node for media storage, only used if type is 'hostPath'. + hostPath: "" + # -- PVC specific settings, only used if type is 'pvc'. accessMode: ReadWriteOnce size: 25Gi # -- Custom annotations to be added to the PVC