Tolto di default il vincolo del nodo specifico.
This commit is contained in:
parent
a51a329fbd
commit
a9ddbe5c9c
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue