From d66c0b150ea1339b7a201222f900658e8eb407c1 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 12 Oct 2020 18:59:09 +0200 Subject: [PATCH] Change the service name of the backends in the haproxy configuration --- templates/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index b118fa7..2688b4b 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -174,5 +174,5 @@ backend {{ srv.acl_name }}_bck stick-table {{ srv.stick_table }} {% endif %} {% endif %} - server-template {{ srv.service_name }}- {{ srv.service_replica_num }} {{ srv.service_name }}_{{ srv.service_name }}:{{ srv.service_port }} {{ srv.backend_options | default('') }} check resolvers docker init-addr libc,none + server-template {{ srv.service_name }}- {{ srv.service_replica_num }} {{ srv.service_name }}:{{ srv.service_port }} {{ srv.backend_options | default('') }} check resolvers docker init-addr libc,none {% endfor %}