-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaproxy.cfg.tftpl
38 lines (31 loc) · 1010 Bytes
/
haproxy.cfg.tftpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
defaults
mode tcp
timeout connect 10s
timeout server 60s
timeout client 60s
resolvers system
parse-resolv-conf
frontend k8s_api
bind :${k8s_api_port}
default_backend k8s_api
backend k8s_api
balance random
%{ for controller in controllers ~}
server ${controller.name} ${controller.name}:${k8s_api_port} resolvers system init-addr none check check-ssl verify none
%{ endfor ~}
frontend k0s_api
bind :${k0s_api_port}
default_backend k0s_api
backend k0s_api
balance random
%{ for controller in controllers ~}
server ${controller.name} ${controller.name}:${k0s_api_port} resolvers system init-addr none check check-ssl verify none
%{ endfor ~}
frontend konnectivity_server
bind :${konnectivity_server_port}
default_backend konnectivity_servers
backend konnectivity_servers
balance roundrobin
%{ for controller in controllers ~}
server ${controller.name} ${controller.name}:${konnectivity_server_port} resolvers system init-addr none check check-ssl verify none
%{ endfor ~}