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 | 69 |
1 files changed, 69 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 new file mode 100644 index 00000000..b4a6ee9d --- /dev/null +++ b/roles/streaming/rtmp/streamer/templates/pod-spec.yml.j2 @@ -0,0 +1,69 @@ +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: ffmpeg + image: registry.gitlab.com/spreadspace/docker/nginx:{{ rtmp_streamer_nginx_image_version }} + imagePullPolicy: Always + command: + - ffmpeg-decklink-rtmp.py + args: + - "{{ rtmp_streamer_decklink_card }}" +{% for level in rtmp_streamer_quality_levels %} + - {{ level }} +{% endfor %} + 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 + env: + - name: CONFIG_FILENAME + value: /srv/config.yml + +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/ |