diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-08-20 01:31:45 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-08-20 01:31:45 +0200 |
commit | b7b6a053edd8ef10371a6f4cc094722a2b91b410 (patch) | |
tree | 89076eb460251844a42605676e3b3c61bf57b505 /roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 | |
parent | add new rtmp streamer role (diff) |
rtmp-streamer: enable recording
Diffstat (limited to 'roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2')
-rw-r--r-- | roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 b/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 index b4a6ee9d..f670fb25 100644 --- a/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 +++ b/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 @@ -53,6 +53,20 @@ containers: - name: CONFIG_FILENAME value: /srv/config.yml +{% if rtmp_streamer_recording_enabled %} +- name: record + image: registry.gitlab.com/spreadspace/docker/nginx:{{ rtmp_streamer_nginx_image_version }} + imagePullPolicy: Always + args: + - /srv/record.sh + volumeMounts: + - name: home + mountPath: /srv + readOnly: true + - name: recordings + mountPath: /srv/recordings + +{% endif %} volumes: - name: home hostPath: @@ -67,3 +81,9 @@ volumes: hostPath: type: Directory path: /usr/lib/ +{% if rtmp_streamer_recording_enabled %} +- name: recordings + hostPath: + type: Directory + path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/recordings" +{% endif %} |