mirror of
https://github.com/Lore09/Tesi-Magistrale.git
synced 2025-12-19 12:24:31 +00:00
Fixed wadm template
This commit is contained in:
@@ -15,12 +15,12 @@ spec:
|
||||
instances: 1
|
||||
spread:
|
||||
{%- set weight = (100 / (targets | length)) | int -%}
|
||||
{%- for target in targets -%}
|
||||
{% for target in targets %}
|
||||
- name: {{ target }}
|
||||
weight: {{ weight }}
|
||||
requirements:
|
||||
host-type: {{ target }}
|
||||
{%- endfor -%}
|
||||
{% endfor %}
|
||||
- type: link
|
||||
properties:
|
||||
target: nats-producer
|
||||
@@ -49,12 +49,12 @@ spec:
|
||||
instances: 1
|
||||
spread:
|
||||
{%- set weight = (100 / (targets | length)) | int -%}
|
||||
{%- for target in targets -%}
|
||||
{% for target in targets %}
|
||||
- name: {{ target }}
|
||||
weight: {{ weight }}
|
||||
requirements:
|
||||
host-type: {{ target }}
|
||||
{%- endfor -%}
|
||||
{% endfor %}
|
||||
|
||||
- name: httpserver
|
||||
type: capability
|
||||
@@ -78,9 +78,9 @@ spec:
|
||||
instances: 1
|
||||
spread:
|
||||
{%- set weight = (100 / (targets | length)) | int -%}
|
||||
{%- for target in targets -%}
|
||||
{% for target in targets %}
|
||||
- name: {{ target }}
|
||||
weight: {{ weight }}
|
||||
requirements:
|
||||
host-type: {{ target }}
|
||||
{%- endfor -%}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user