Load Balancers

Add and configure Load Balancers with DuploCloud Azure
Load Balancers are essential when running a service. They expose the containers and images in which your application resides. When your containers are run inside a private network, you need a load balancer to listen on the correct ports to access the application.

Add a Load Balancer Listener

Add a load balancer listener that uses the Kubernetes NodePort (K8S NodePort).
Several Load Balancers are available for Azure. See the Azure Documentation for a comparison of each option.
  • Application LB (Standard load balancer)
  • Shared App Gateway
  • Classic (Basic load balancer)
  • Health Check - Selecting this load balancer allows the Application LB (Standard load balancer) to use Kubernetes Health Check to determine whether your service is running properly.

Before you begin

You must create Services before adding load balancers and listeners. In this example, we name these services s1-alb and s4-nlb, respectively.
Services running ALB and NLB

Adding a Load Balancer Listener

  1. 1.
    In the DuploCloud Portal, navigate DevOps -> Containers -> AKS/Native.
  2. 2.
    On the Services page, select the Service name in the Name column.
  3. 3.
    Click the Load Balancers tab.
    Load Balancer tab on the AKS Services page
  4. 4.
    Click Configure Load Balancer. The Add Load Balancer Listener pane appears.
  5. 5.
    Select a type (such as K8S Node Port) in the Select Type field.
  6. 6.
    Add the Kubernetes Health Check URL for this container in the Health Check field.
  7. 7.
    Complete the other fields in the Add Load Balancer Listener and click Add.

Configuring a Load Balancer using rules

Rules specify specific configurations for various types of Load Balancers.
See the Ingress use case for an example of how to configure Load Balancers using rules.