Browse Source

Add possibility to skip initcontainer to avoid long chown if wanted

pull/1/head
LecygneNoir 4 years ago
parent
commit
350787b431
2 changed files with 8 additions and 0 deletions
  1. +2
    -0
      templates/deployment.yaml
  2. +6
    -0
      values.yaml

+ 2
- 0
templates/deployment.yaml View File

@ -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 }}"

+ 6
- 0
values.yaml View File

@ -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

Loading…
Cancel
Save