Skip to main content

1) HAProxy Installation

HAProxy is an open-source proxy and load balancing solution used to provide load balancing and high availability. Installation on Ubuntu operating systems is described below.
HAProxy installation is performed.
Configuration file is edited.
You can add the following commands to the bottom of the file. Edit the hostname and IP fields according to yourself.

2) Keepalived Installation

Keepalived provides a virtual IP address between multiple control nodes (master and backup masters) and is used to ensure continuous operation of other services.
The following script performs availability check to the Kubernetes API server. Replace the <VIRTUAL_IP> part with the virtual ip you will add in the next step.
If the keepalived.conf file is not empty, you can clear its content and add the following command lines. Important: Add the appropriate network unit opposite the interface. Replace the <VIRTUAL_IP> part with the IP address you want to add.

Starting Kubernetes Cluster

You can perform Kubernetes installation from the Kubernetes Installation on Ubuntu Operating System document.
Important: When performing the init operation, you must enter your own virtual IP address to the endpoint as follows.