Tolto di default il vincolo del nodo specifico.

This commit is contained in:
Andrea Dell'Amico 2022-07-04 17:51:28 +02:00
parent a51a329fbd
commit a9ddbe5c9c
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ epas_teleworker_docker_network: 'epas_teleworker_net'
epas_teleworker_docker_attachments_node: 'docker-exec2' epas_teleworker_docker_attachments_node: 'docker-exec2'
epas_teleworker_attachments_node: 'localhost' epas_teleworker_attachments_node: 'localhost'
epas_teleworker_attachments_volume: 'epas_teleworker_attachments_data' epas_teleworker_attachments_volume: 'epas_teleworker_attachments_data'
epas_teleworker_run_on_fixed_node: false
epas_teleworker_node_constraints: 'node.labels.epas_teleworker_storage == attachments' epas_teleworker_node_constraints: 'node.labels.epas_teleworker_storage == attachments'
epas_teleworker_behind_haproxy: True epas_teleworker_behind_haproxy: True
epas_teleworker_haproxy_public_net: 'haproxy-public' epas_teleworker_haproxy_public_net: 'haproxy-public'

View File

@ -40,7 +40,9 @@ services:
placement: placement:
constraints: constraints:
- node.role == worker - node.role == worker
{% epas_teleworker_run_on_fixed_node %}
- {{ epas_teleworker_node_constraints }} - {{ epas_teleworker_node_constraints }}
{% endif %}
restart_policy: restart_policy:
condition: on-failure condition: on-failure
delay: 5s delay: 5s