HAProxy with Kubernetes Flashcards

1
Q

What default options should be set for use with kubernetes cluster in HAProxy config?

A

log global
mode tcp
option tcplog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe what the “frontend” section should look like for use with kubernetes cluster in HAProxy config?

A
frontend proxynode
  bind *:80
  bind *:6443
  stats uri /proxystats
  default_backend k8sServers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe what “backend” section should look like for use with kubernetes cluster in HAProxy config?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe what “listen” section should look like for use with kubernetes cluster in HAProxy config?

A
listen stats
  bind :9999
  mode http
  stats enable
  stats hide-version
  stats uri /stats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What should be added to the hosts file for each control plane server?

A

Each hosts file should have the alias of the control plane endpoint referencing the HAProxy IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly