|
|
@ -19,9 +19,8 @@ spec: |
|
|
|
app: {{ template "peertube.name" . }} |
|
|
|
release: {{ .Release.Name }} |
|
|
|
spec: |
|
|
|
{{- if .Values.initcontainer.enabled }} |
|
|
|
initContainers: |
|
|
|
- name: init-peertube |
|
|
|
- name: peertube-init |
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|
|
|
volumeMounts: |
|
|
@ -35,6 +34,21 @@ spec: |
|
|
|
command: |
|
|
|
- sh |
|
|
|
- /init/peertube-init.sh |
|
|
|
{{- if .Values.chowncontainer.enabled }} |
|
|
|
- name: peertube-chown |
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|
|
|
volumeMounts: |
|
|
|
- name: data |
|
|
|
mountPath: /data |
|
|
|
- name: config |
|
|
|
mountPath: /config |
|
|
|
- mountPath: /init |
|
|
|
name: peertube-chown |
|
|
|
readOnly: true |
|
|
|
command: |
|
|
|
- sh |
|
|
|
- /init/peertube-chown.sh |
|
|
|
{{- end }} |
|
|
|
containers: |
|
|
|
- name: {{ .Chart.Name }} |
|
|
@ -136,3 +150,7 @@ spec: |
|
|
|
defaultMode: 420 |
|
|
|
name: peertube-init |
|
|
|
name: peertube-init |
|
|
|
- configMap: |
|
|
|
defaultMode: 420 |
|
|
|
name: peertube-chown |
|
|
|
name: peertube-chown |