Added playbook and role for k8s-ha-api

This commit is contained in:
2025-08-23 13:39:33 +03:00
parent fb73056312
commit 8efad362a0
10 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,26 @@
global
log /dev/log local0
log /dev/log local1 notice
daemon
maxconn 2000
defaults
log global
mode tcp
option tcplog
option dontlognull
timeout connect 10s
timeout client 1m
timeout server 1m
retries 3
frontend kubernetes_api
bind *:6443
default_backend k8s_masters
backend k8s_masters
option tcp-check
balance roundrobin
{% for srv in haproxy_backend_server %}
server {{ srv.backend_name }} {{ srv.backend_ip }}:{{ srv.backend_port }} check fall 3 rise 2
{% endfor %}