Skip to content

Create load balancers

Our cluster receive traffic via a NGINX reverse-proxy and load balancers, managed by Ingress-NGINX Controllers.

At the moment we currently manages two Ingress-Nginx Controllers:
- Minority-API for traffic towards Minority services
- Web for traffic toward Majority website.

Resources to be created (per LB setup)

  • A load balancer
  • Attach the public IP to the new load balancer as a frontend IP
  • Create a load balancer health probe on port 30953 path /healthz protocol http
  • Create listener rule on ports 80 and 443 with health probes
  • Nginx ingress controller

Deploy Minority API controller via Helm

We will deploy the controller via Helm in kube-system. The values files can be found in ...
Make sure to update the public IP with an available one (it should have been created in the previous step).

cd Minority/nginx-ingress-controller/

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx --force-update

helm upgrade minority-api ingress-nginx/ingress-nginx \
--install \
--namespace kube-system \
--version 4.11.1  \
-f values.yaml -f dev-values.yaml                                       

 remove stuff from kube-system

Deploy the Web controller via Helm

To do


References

https://kubernetes.github.io/ingress-nginx/deploy/