diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 908d360..0c6572d 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -19,6 +19,7 @@ spec: app: {{ template "peertube.name" . }} release: {{ .Release.Name }} spec: +{{- if .Values.initcontainer.enabled }} initContainers: - name: init-peertube image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" @@ -34,6 +35,7 @@ spec: command: - sh - /init/peertube-init.sh +{{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/values.yaml b/values.yaml index cccd3ef..aec3d9c 100644 --- a/values.yaml +++ b/values.yaml @@ -28,6 +28,12 @@ ingress: hosts: - peertube.domain.tld +# At start initcontainer check every video files and chown it to peertube. +# If you have lots of videos, it may take age. +# If you are sure your rights are ok, you may disable this container to speed up start. +initcontainer: + enabled: true + resources: # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little