summaryrefslogtreecommitdiff
path: root/roles/streaming/player/templates/pod-spec.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-07-06 12:26:15 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-07-06 13:46:28 +0200
commitf7cc984435d2bf72715133a9e03959587164aa99 (patch)
tree92ad78c765652989afb83c088d463a272fb7c49f /roles/streaming/player/templates/pod-spec.yml.j2
parentch-imap-proxy: add stunnel config for getmail (diff)
add role streaming/player and deploy to ele-helene
Diffstat (limited to 'roles/streaming/player/templates/pod-spec.yml.j2')
-rw-r--r--roles/streaming/player/templates/pod-spec.yml.j239
1 files changed, 39 insertions, 0 deletions
diff --git a/roles/streaming/player/templates/pod-spec.yml.j2 b/roles/streaming/player/templates/pod-spec.yml.j2
new file mode 100644
index 00000000..a4eff23f
--- /dev/null
+++ b/roles/streaming/player/templates/pod-spec.yml.j2
@@ -0,0 +1,39 @@
+containers:
+- name: player
+ image: registry.gitlab.com/spreadspace/docker/ffmpeg:{{ player_ffmpeg_image_version }}
+ imagePullPolicy: Always
+ command:
+ - /usr/bin/ffmpeg
+ args:
+{% for param in player_input %}
+ - '{{ param }}'
+{% endfor %}
+{% for param in player_output %}
+ - '{{ param }}'
+{% endfor %}
+ securityContext:
+ privileged: true
+ volumeMounts:
+ - 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
+
+volumes:
+- name: decklink-device
+ hostPath:
+ path: /dev/blackmagic
+- name: decklink-libs
+ hostPath:
+ type: Directory
+ path: /usr/lib/