The folder contains a configuration for a primitive load balancer for Kubernetes. We use Nginx installed on master node of Kubernetes cluster via package manager of node operating system.
It is not the best practice. We use this approach for a quick start. Consider to use MetalLB, hardware alternative, etc.
-
SSH to master node of your cluster and install Nginx
sudo apt install nginx
-
Disable default config
sudo rm /etc/nginx/sites-enabled/default
-
Append the text from kubernetes.conf to the end of
/etc/nginx/nginx.conf
-
Check the config
sudo nginx -t
-
Reload Nginx
sudo systemctl restart nginx