diff --git a/charts/jellyfin/README.md b/charts/jellyfin/README.md index 91214a2..9d7a540 100644 --- a/charts/jellyfin/README.md +++ b/charts/jellyfin/README.md @@ -54,6 +54,7 @@ helm install -f values.yaml |-----|------|---------|-------------| | affinity | object | `{}` | | | enableDLNA | bool | `false` | Setting this to true enables DLNA which requires the pod to be attached to the host network in order to be useful - this can break things like ingress to the service https://jellyfin.org/docs/general/networking/dlna.html | +| extraInitContainers | object | `{}` | additional init containers to run inside the pod. | | extraContainers | object | `{}` | additional sidecar containers to run inside the pod. | | extraEnvVars | list | `[]` | aditional environment variables passed to the pod | | extraPodAnnotations | object | `{}` | additional annotations applied to the pod | diff --git a/charts/jellyfin/templates/deployment.yaml b/charts/jellyfin/templates/deployment.yaml index b46de2b..c86aca9 100644 --- a/charts/jellyfin/templates/deployment.yaml +++ b/charts/jellyfin/templates/deployment.yaml @@ -113,6 +113,10 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} + {{- if .Values.extraInitContainers }} + initContainers: + {{- toYaml .Values.extraInitContainers | nindent 10 }} + {{- end }} volumes: - name: config {{- if .Values.persistence.config.enabled }} diff --git a/charts/jellyfin/values.yaml b/charts/jellyfin/values.yaml index 618f448..a6bacbd 100644 --- a/charts/jellyfin/values.yaml +++ b/charts/jellyfin/values.yaml @@ -121,6 +121,9 @@ extraEnvVars: [] # -- additional annotations applied to the pod extraPodAnnotations: {} +# -- additional init containers to run inside the pod. +extraInitContainers: {} + # -- additional sidecar containers to run inside the pod. extraContainers: {}