Cloud Experts Documentation

AWS Load Balancer Operator On ROSA

This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.

AWS Load Balancer Controllerexternal link (opens in new tab) is a controller to help manage Elastic Load Balancers for a Kubernetes cluster.

Compared with default AWS In Tree Provider, this controller is actively developed with advanced annotations for both ALBexternal link (opens in new tab) and NLBexternal link (opens in new tab) . Some advanced usecases are:

  • Using native kubernetes ingress with ALB
  • Integrate ALB with WAF
  • Specify NLB source IP ranges
  • Specify NLB internal IP address

AWS Load Balancer Operatorexternal link (opens in new tab) is used to used to install, manage and configure an instance of aws-load-balancer-controller in a OpenShift cluster.

Prerequisites

Environment

  1. Prepare the environment variables

AWS VPC / Subnets

Note: This section only applies to BYO VPC clusters, if you let ROSA create your VPCs you can skip to the following Installation section.

  1. Set Variables describing your VPC and Subnets:

  2. Tag VPC with the cluster name

  3. Add tags to Public Subnets

  4. Add tags to Private Subnets

Installation

  1. Create Policy for the aws load balancer controller

    Note: Policy is from AWS Load Balancer Controller Policyexternal link (opens in new tab) plus subnet create tags permission (required by the operator)

  2. Create trust policy for ALB Operator

  3. Create Role for ALB Operator

  4. Create secret for ALB Operator

  5. Install Red Hat AWS Load Balancer Operator

  6. Install Red Hat AWS Load Balancer Controller

    Note: If you get an error here wait a minute and try again, it likely means the Operator hasn’t completed installing yet.

  7. Check the Operator and Controller pods are both running

    You should see the following, if not wait a moment and retry.

Validate the deployment with Echo Server application

  1. Deploy Echo Server Ingress with ALB

  2. Curl the ALB ingress endpoint to verify the echoserver pod is accessible

  3. Deploy Echo Server NLB Load Balancer

  4. Test the NLB endpoint

Clean Up

  1. Delete the Operator and the AWS Roles

  2. If you wish to delete the policy you can run

Interested in contributing to these docs?

Collaboration drives progress. Help improve our documentation The Red Hat Way.

Red Hat logo LinkedIn YouTube Facebook Twitter

Products

Tools

Try, buy & sell

Communicate

About Red Hat

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Subscribe to our newsletter, Red Hat Shares

Sign up now
© 2023 Red Hat, Inc.