diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-02-03 20:14:22 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-02-03 20:14:22 +0100 |
commit | c015f7b87764cb0c142e755ea3a47fc9ef21a0a5 (patch) | |
tree | f69a2244df625de87cdb9d6ca484c323e271950a /templates/default/kubernetes | |
parent | improved worker list (diff) |
added flag for decklink input
Diffstat (limited to 'templates/default/kubernetes')
-rw-r--r-- | templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 index 778aa06..d184661 100644 --- a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 +++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 @@ -36,29 +36,33 @@ spec: - -u user - -p test - -F {{ 8000 + loop.index0 * 10 }}-{{ 8001 + loop.index0 * 10 }} -# securityContext: -# privileged: true volumeMounts: - name: home mountPath: /srv -# - name: decklink-devices -# mountPath: /dev/blackmagic -# - name: decklink-libs -# subPath: libDeckLinkAPI.so -# mountPath: /usr/lib/libDeckLinkAPI.so -# - name: decklink-libs -# subPath: libDeckLinkPreviewAPI.so -# mountPath: /usr/lib/libDeckLinkPreviewAPI.so +{% if 'input-decklink' in sub.flags %} + - name: decklink-devices + mountPath: /dev/blackmagic + - name: decklink-libs + subPath: libDeckLinkAPI.so + mountPath: /usr/lib/libDeckLinkAPI.so + - name: decklink-libs + subPath: libDeckLinkPreviewAPI.so + mountPath: /usr/lib/libDeckLinkPreviewAPI.so + securityContext: + privileged: true +{% endif %} {% endfor %} volumes: - name: home emptyDir: medium: Memory -# - name: decklink-devices -# hostPath: -# type: Directory -# path: /dev/blackmagic -# - name: decklink-libs -# hostPath: -# type: Directory -# path: /usr/lib/ +{% if 'input-decklink' in worker.flags %} + - name: decklink-devices + hostPath: + type: Directory + path: /dev/blackmagic + - name: decklink-libs + hostPath: + type: Directory + path: /usr/lib/ +{% endif %} |