Browse Source

Add config to support new live feature for Peertube v3

master
LecygneNoir 3 years ago
parent
commit
0340f1662b
3 changed files with 27 additions and 4 deletions
  1. +14
    -3
      templates/deployment.yaml
  2. +6
    -0
      templates/service.yaml
  3. +7
    -1
      values.yaml

+ 14
- 3
templates/deployment.yaml View File

@ -87,6 +87,12 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.nginxproxy.enabled }}
{{- if .Values.ports.livePort }}
ports:
- name: live
containerPort: {{ .Values.ports.livePort }}
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: /
@ -99,9 +105,14 @@ spec:
initialDelaySeconds: 60
{{- else }}
ports:
- name: http
containerPort: {{ .Values.ports.peertubePort }}
protocol: TCP
- name: http
containerPort: {{ .Values.ports.peertubePort }}
protocol: TCP
{{- if .Values.ports.livePort }}
- name: live
containerPort: {{ .Values.ports.livePort }}
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: /

+ 6
- 0
templates/service.yaml View File

@ -20,6 +20,12 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- end }}
{{- if .Values.ports.livePort }}
- port: {{ .Values.ports.livePort }}
targetPort: {{ .Values.ports.livePort }}
protocol: TCP
name: live
{{- end }}
selector:
app: {{ template "peertube.name" . }}

+ 7
- 1
values.yaml View File

@ -20,6 +20,9 @@ ports:
# The chart uses the correct port for service and ingress according to configuration
peertubePort: 9000
nginxproxyPort: 9001
# livePort is a directly exposed TCP port used for the live streaming feature.
# Should match your live configuration in production.yml, and default to 1935
livePort: 1935
ingress:
enabled: true
@ -92,8 +95,11 @@ environment:
admin: peertube@peertube.domain.tld
transcoding: true
# WARNING nginxproxy is not compatible with live at the moment
# Because it search .../streaming-playlists/... in URL path directly in filesystem path
# and if you use .../streaming_playlists/... on filesystem, live is broken (notice the - vs _)
nginxproxy:
enabled: true
enabled: false
image:
repository: nginx
tag: 1.17.9

Loading…
Cancel
Save