Skip to content

AWS Load Balancer Controller Add-on

The AWS Load Balancer Controller manages AWS Elastic Load Balancers for a Kubernetes cluster. The controller provisions the following resources:

  • An AWS Application Load Balancer (ALB) when you create a Kubernetes Ingress.
  • An AWS Network Load Balancer (NLB) when you create a Kubernetes Service of type LoadBalancer. In the past, you used the Kubernetes in-tree load balancer for instance targets, but used the AWS Load balancer Controller for IP targets. With the AWS Load Balancer Controller version 2.2.0 or later, you can create Network Load Balancers using either target type. For more information about NLB target types, see Target type in the User Guide for Network Load Balancers.

For more information about AWS Load Balancer Controller please see the official documentation. This controller is a required for proper configuration of other ingress controllers such as NGINX.


import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';

const app = new cdk.App();

const addOn = new blueprints.addons.AwsLoadBalancerControllerAddOn();

const blueprint = blueprints.EksBlueprint.builder()
  .build(app, 'my-stack-name');

To validate that controller is running, ensure that controller deployment is in RUNNING state:

# Assuming controller is installed in kube-system namespace
$ kubectl get deployments -n kube-system
NAME                                                       READY   UP-TO-DATE   AVAILABLE   AGE
aws-load-balancer-controller                               2/2     2            2           3m58s


  1. Adds proper IAM permissions and creates a Kubernetes service account with IRSA integration.
  2. Allows configuration options such as enabling WAF and Shield.
  3. Allows to replace the helm chart version if a specific version of the controller is needed.
  4. Creates an IngressClass associated with the AWS Load Balance Controller when the createIngressClassResource prop is set to true
  5. Supports standard helm configuration options.

Note: An ingressClass must be created in the cluster, either using the createIngressClassResource prop or externally, to be able to create Ingresses associated with the AWS ALB.

Creating a Load Balanced Service

Once the AWS Load Balancer Controller add-on is installed in your cluster, it is able to provision both Network Load Balancers and Application Load Balancers on your behalf. For example, when the following manifest is applied to your cluster, it will create an NLB.

apiVersion: v1
kind: Service
  annotations: '60' nlb
  name: udp-test1
  type: LoadBalancer
  - port: 5005
    protocol: UDP
    targetPort: 5005
    name: your-app