Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 797 Bytes

load-balancer.md

File metadata and controls

36 lines (22 loc) · 797 Bytes

Primitive Nginx load-balancer

About

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.

How to install

  1. SSH to master node of your cluster and install Nginx

    sudo apt install nginx
  2. Disable default config

    sudo rm /etc/nginx/sites-enabled/default
  3. Append the text from kubernetes.conf to the end of /etc/nginx/nginx.conf

  4. Check the config

    sudo nginx -t
  5. Reload Nginx

    sudo systemctl restart nginx