Install and Check Load Balancer

To start, setup a Load Balancer for the Kubernetes API server.

Next, ensure that the Load Balancer is accessible from all hosts. Verify accessibility with nc and curl by using the Check Load Balancer Command.

Check Load Balancer Command (nc):

root@nadmtest30:~# nc -v haproxy0.lab.nirmata.io 6443

Check Load Balancer Command (curl):

root@nadmtest30:~# curl -k https://haproxy0.lab.nirmata.io:6443

If the Load Balancer is accessible the nc and curl commands will return a success message:

Connection to nadmtest10.lab.nirmata.io 6443 port [tcp/*] succeeded!

If the Load Balancer is not accessible, a Service Unavailable message will return:

<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.