apiVersion: apps/v1 kind: Deployment metadata: namespace: {{ namespace }} name: flumotion-worker-{{ worker_name }} labels: app: flumotion type: worker spec: replicas: 1 selector: matchLabels: app: flumotion type: worker strategy: type: Recreate revisionHistoryLimit: 5 template: metadata: labels: app: flumotion type: worker spec: nodeName: {{ worker_name }} containers: {% for subname in worker_subnames %} - name: {{ subname }} image: spreadspace/flumotion:worker imagePullPolicy: Always args: - --verbose - -H flumotion-manager - -P 8642 - -T tcp - -n {{ worker_name }}:{{ subname }} - -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 {% 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/