github.com/openshift/installer@v1.4.17/upi/vsphere/lb/haproxy.tmpl (about)

     1  defaults
     2    maxconn 20000
     3    mode    tcp
     4    log     /var/run/haproxy/haproxy-log.sock local0
     5    option  dontlognull
     6    retries 3
     7    timeout http-request 10s
     8    timeout queue        1m
     9    timeout connect      10s
    10    timeout client       86400s
    11    timeout server       86400s
    12    timeout tunnel       86400s
    13  
    14  frontend api-server
    15      bind ${lb_ip_address}:6443
    16      default_backend api-server
    17  
    18  frontend machine-config-server
    19      bind ${lb_ip_address}:22623
    20      default_backend machine-config-server
    21  
    22  frontend router-http
    23      bind ${lb_ip_address}:80
    24      default_backend router-http
    25  
    26  frontend router-https
    27      bind ${lb_ip_address}:443
    28      default_backend router-https
    29  
    30  backend api-server
    31      option  httpchk GET /readyz HTTP/1.0
    32      option  log-health-checks
    33      balance roundrobin
    34      %{ for addr in api ~}
    35      server ${addr} ${addr}:6443 weight 1 verify none check check-ssl inter 1s fall 2 rise 3
    36      %{ endfor ~}
    37  
    38  backend machine-config-server
    39      balance roundrobin
    40      %{ for addr in api ~}
    41      server ${addr} ${addr}:22623 check
    42      %{ endfor ~}
    43  
    44  backend router-http
    45      balance source
    46      mode tcp
    47      %{ for addr in ingress ~}
    48      server ${addr} ${addr}:80 check
    49      %{ endfor ~}
    50  
    51  backend router-https
    52      balance source
    53      mode tcp
    54      %{ for addr in ingress ~}
    55      server ${addr} ${addr}:443 check
    56      %{ endfor ~}
    57