HAProxy with Kubernetes Flashcards
What default options should be set for use with kubernetes cluster in HAProxy config?
log global
mode tcp
option tcplog
Describe what the “frontend” section should look like for use with kubernetes cluster in HAProxy config?
frontend proxynode bind *:80 bind *:6443 stats uri /proxystats default_backend k8sServers
Describe what “backend” section should look like for use with kubernetes cluster in HAProxy config?
backend k8sServers
balance roundrobin
server control-plane-01 [IP of host]:6443 check
server control-plane-02 [IP of host]:6443 check
server control-plane-03 [IP of host]:6443 check
Describe what “listen” section should look like for use with kubernetes cluster in HAProxy config?
listen stats bind :9999 mode http stats enable stats hide-version stats uri /stats
What should be added to the hosts file for each control plane server?
Each hosts file should have the alias of the control plane endpoint referencing the HAProxy IP address.