fix syntax in haproxy.cfg.j2 for IPv6 binding (#12862)

This commit is contained in:
Will Xiang 2026-01-14 15:03:35 +08:00 committed by GitHub
parent 63a43cf6db
commit 82c4c0afdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ frontend healthz
frontend kube_api_frontend
bind 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
{% if ipv6_stack -%}
bind [::1]:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
bind [::1]:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
{% endif -%}
mode tcp
option tcplog