diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-02-03 20:01:26 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-02-03 20:01:26 +0100 |
commit | 81e08b594c611e1224055de10dedbe6c9933efa0 (patch) | |
tree | b199dd458d0510facb59e1f11b955f894e35b5a3 /templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | |
parent | flumotion worker config (not working yet) (diff) |
improved worker list
Diffstat (limited to 'templates/default/kubernetes/flumotion-worker-deploy.yml.j2')
-rw-r--r-- | templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 index 8504b34..778aa06 100644 --- a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 +++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 @@ -2,7 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: namespace: {{ namespace }} - name: flumotion-worker-{{ worker_name }} + name: flumotion-worker-{{ worker.name }} labels: app: flumotion type: worker @@ -21,9 +21,9 @@ spec: app: flumotion type: worker spec: - nodeName: {{ worker_name }} + nodeName: {{ worker.name }} containers: -{% for subname in worker_subnames %} +{% for subname, sub in worker.subs.items() %} - name: {{ subname }} image: spreadspace/flumotion:worker imagePullPolicy: Always @@ -32,7 +32,7 @@ spec: - -H flumotion-manager - -P 8642 - -T tcp - - -n {{ worker_name }}:{{ subname }} + - -n {{ sub.fullname }} - -u user - -p test - -F {{ 8000 + loop.index0 * 10 }}-{{ 8001 + loop.index0 * 10 }} |