Load Balancer
A load balancer is required if you have multiple control nodes, this is to ensure nodes and users can connect to the control plane if one of the host nodes becomes inactive. This document will outline using a fresh Debian or Alpine based host using HAProxy. Any TLS load-balancer will work.
Install HAProxy
OS:
sudo apk update # Update apk cache
sudo apk add haproxy # Install HAProxy
sudo rc-update add haproxy # Start HAProxy on bootsudo apt update # Update apt cache
sudo apt install -y haproxy # Install HAProxy server
sudo systemctl enable --now haproxy # Start and enable HAProxy on bootConfigure HAProxy
Set the configuration file for HAProxy as below - this is a base configuration and will need changes in the backend configuration at the bottom.
Apply changes
Once the required changes have been made run the following command:
OS:
sudo service haproxy reloadsudo systemctl reload haproxy