Configure a Load Balancer

Change the external IP

If you want to change the external IP of the load balancer, you can associate a floating IP to the load balancer in the SysEleven Stack dashboard. A newly created load balancer already has an IP associated, to disassociate it open the menu Project -> Network -> Load Balancers and click on Disassociate Floating IP:

Disassociate Floating IP in SysEleven Stack

Afterwards you can associate another IP by clicking on Associate Floating IP in the same menu. This will trigger a popup, where you can either select an already existing floating IP or a floating IP pool:

Associate Floating IP in SysEleven Stack

Limiting access to a load balancer by IP ranges

Every LoadBalancer automatically also receives a SecurityGroup that opens up the necessary ports for this load balancer. This SecurityGroup can also be configured to only allow certain source IP ranges by setting the loadBalancerSourceRanges field in the Service.

Note that because of a limitation in Kubernetes, updating or adding this field after the creation of a load balancer service is currently not possible.


I created a load balancer but can't reach the application

This can have multiple reasons. Typical problems are:

  • Your application is not reachable. Try to use kubectl port-forward $PODNAME 8080:80 (port might differ) and check if you can reach your application on Port 80.
  • The required port is not defined in the service manifest. Check if the service lists all required ports with kubectl get svc.
  • The service port is not reachable. Check if you can reach the service port on any of your worker nodes. Therefore you need to open the port (temporarily) in the cluster security group.
  • The load balancer can't reach the worker nodes. Make sure that your cluster security group has opened the port range 30000 - 32767 for the internal network Usually this is set automatically.