diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-02-03 05:27:37 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-02-03 05:27:37 +0100 |
commit | e4d12eb0bd08e6ab1120975201084d16c6ecdab1 (patch) | |
tree | e02991709f59a70a8a5be7fb76c093e678c05308 /templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | |
parent | flumotion planet now keeps track of use workers (diff) |
flumotion worker config (not working yet)
Diffstat (limited to 'templates/default/kubernetes/flumotion-worker-deploy.yml.j2')
-rw-r--r-- | templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 index ea040d0..8504b34 100644 --- a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 +++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: namespace: {{ namespace }} @@ -21,9 +21,10 @@ spec: app: flumotion type: worker spec: - nodeName: dione + nodeName: {{ worker_name }} containers: - - name: flumotion +{% for subname in worker_subnames %} + - name: {{ subname }} image: spreadspace/flumotion:worker imagePullPolicy: Always args: @@ -31,31 +32,33 @@ spec: - -H flumotion-manager - -P 8642 - -T tcp - - -n {{ worker_name }} + - -n {{ worker_name }}:{{ subname }} - -u user - -p test - securityContext: - privileged: true + - -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 +# - 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/ +# - name: decklink-devices +# hostPath: +# type: Directory +# path: /dev/blackmagic +# - name: decklink-libs +# hostPath: +# type: Directory +# path: /usr/lib/ |