Skip to content

Commit e56188b

Browse files
committed
Kubernetes: fix haproxy master port configuration
We were using per host variable, but this is a general variable, so let's use the general one.
1 parent 71cda13 commit e56188b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/kubernetes/templates/multi-master/haproxy.cfg.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ backend apiserver
4949
default-server verify none check-ssl inter 10s downinter 5s rise 2 fall 2 slowstart 60s maxconn 5000 maxqueue 5000 weight 100
5050
{% for host in ansible_play_batch %}
5151
{% if hostvars[host].k8s_role == 'master' %}
52-
server master-{{ loop.index }} {{ host }}:{{ hostvars[host].k8s_master_port }} check
52+
server master-{{ loop.index }} {{ host }}:{{ k8s_master_port }} check
5353
{% endif %}
5454
{% endfor %}

0 commit comments

Comments
 (0)