diff options
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 %} |