summaryrefslogtreecommitdiff
path: root/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2')
-rw-r--r--roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2143
1 files changed, 0 insertions, 143 deletions
diff --git a/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 b/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2
deleted file mode 100644
index 9d0e7bad..00000000
--- a/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2
+++ /dev/null
@@ -1,143 +0,0 @@
-containers:
-- name: nginx
- image: registry.gitlab.com/spreadspace/docker/nginx:{{ rtmp_streamer_nginx_image_version }}
- imagePullPolicy: Always
- command:
- - nginx
- args:
- - -c
- - /srv/nginx.conf
- - -g
- - "daemon off;"
- ports:
- - containerPort: 1935
- hostPort: {{ rtmp_streamer_port }}
- volumeMounts:
- - name: home
- mountPath: /srv
- readOnly: true
- - name: nginx-lib
- mountPath: /var/lib/nginx
-
-- name: source
- image: registry.gitlab.com/spreadspace/docker/ffmpeg:{{ rtmp_streamer_ffmpeg_image_version }}
- imagePullPolicy: Always
- command:
- - /usr/local/bin/generic-rtmp.py
- args:
-{% for param in rtmp_streamer_input %}
- - '{{ param }}'
-{% endfor %}
- env:
- - name: CONFIG_FILENAME
- value: /srv/config.yml
- - name: QUALITY_LEVELS
- value: {{ rtmp_streamer_quality_levels | join(',') }}
- - name: AUDIO_TRACKS
- value: {{ rtmp_streamer_audio_track }}
-{% if rtmp_streamer_video_filter_common is defined %}
- - name: VIDEO_FILTER_COMMON
- value: "{{ rtmp_streamer_video_filter_common }}"
-{% endif %}
- securityContext:
- privileged: true
- volumeMounts:
- - name: home
- mountPath: /srv
- readOnly: true
- - name: decklink-device
- mountPath: /dev/blackmagic
- - name: decklink-libs
- subPath: libDeckLinkAPI.so
- mountPath: /usr/lib/libDeckLinkAPI.so
- readOnly: true
- - name: decklink-libs
- subPath: libDeckLinkPreviewAPI.so
- mountPath: /usr/lib/libDeckLinkPreviewAPI.so
- readOnly: true
- - name: decklink-libs
- subPath: blackmagic
- mountPath: /usr/lib/blackmagic
- readOnly: true
-
-{% for name, forward in rtmp_streamer_forwards.items() %}
-- name: "forward-{{ name }}"
- image: registry.gitlab.com/spreadspace/docker/ffmpeg:{{ rtmp_streamer_ffmpeg_image_version }}
- imagePullPolicy: Always
- command:
- - /usr/bin/ffmpeg
- args:
- - -f
- - live_flv
- - -rtmp_live
- - live
- - -i
- - "rtmp://127.0.0.1/{{ rtmp_streamer_app_name }}/{{ forward.level }}"
- - -c:a
- - copy
- - -c:v
- - copy
- - -f
- - flv
- - "{{ forward.url }}"
-
-{% endfor %}
-{% if rtmp_streamer_recording is defined %}
-- name: record
- image: registry.gitlab.com/spreadspace/docker/ffmpeg:{{ rtmp_streamer_ffmpeg_image_version }}
- imagePullPolicy: Always
- command:
- - /usr/bin/ffmpeg
- args:
- - -f
- - live_flv
- - -rtmp_live
- - live
- - -i
- - 'rtmp://127.0.0.1/{{ rtmp_streamer_app_name }}/{{ rtmp_streamer_recording.level }}'
- - -c:a
- - copy
- - -c:v
- - copy
- - -f
- - segment
- - -segment_atclocktime
- - '1'
- - -segment_time
- - '{{ rtmp_streamer_recording.segment_time | default(3600) }}'
- - -segment_clocktime_offset
- - '{{ rtmp_streamer_recording.segment_clocktime_offset | default(0) }}'
- - -strftime
- - '1'
- - -reset_timestamps
- - '1'
- - '%Y-%m-%d_%H-%M-%S.mkv'
- workingDir: /srv/recordings
- volumeMounts:
- - name: home
- mountPath: /srv
- readOnly: true
- - name: recordings
- mountPath: /srv/recordings
-
-{% endif %}
-volumes:
-- name: home
- hostPath:
- path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}"
-- name: nginx-lib
- emptyDir:
- medium: Memory
-- name: decklink-device
- hostPath:
- path: /dev/blackmagic
-- name: decklink-libs
- hostPath:
- type: Directory
- path: /usr/lib/
-{% if rtmp_streamer_recording is defined %}
-- name: recordings
- hostPath:
- type: Directory
- path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/recordings"
-{% endif %}