Skip to content

Latest commit

 

History

History
130 lines (83 loc) · 6.64 KB

File metadata and controls

130 lines (83 loc) · 6.64 KB

LB Ingress Controller Deployment Guide

Introduction

AWS Load Balancer Controller is a controller to help manage Elastic Load Balancers for a Kubernetes cluster.

  • It satisfies Kubernetes Ingress resources by provisioning Application Load Balancers.
  • It satisfies Kubernetes Service resources by provisioning Network Load Balancers.

Helm Chart

Instructions to use Helm Charts

Add Helm repo for LB Ingress Controller

helm repo add aws-load-balancer-controller https://aws.github.io/eks-charts

https://github.com/aws/eks-charts/blob/master/stable/aws-load-balancer-controller/values.yaml

https://artifacthub.io/packages/helm/aws/aws-load-balancer-controller

Docker Image for LB ingress controller

Instructions to upload LB ingress controller Docker image to AWS ECR

Step1: Get the latest docker image from this link

    https://github.com/aws/eks-charts/blob/master/stable/aws-load-balancer-controller/values.yaml

Step2: Download the docker image to your local Mac/Laptop

    $ aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 602401143452.dkr.ecr.us-west-2.amazonaws.com
    
    $ docker pull 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-load-balancer-controller:v2.2.1

Step3: Retrieve an authentication token and authenticate your Docker client to your registry. Use the AWS CLI:

    $ aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin <account id>.dkr.ecr.eu-west-1.amazonaws.com

Step4: Create an ECR repo for LB ingress controller if you don't have one

    $ aws ecr create-repository \
          --repository-name amazon/aws-load-balancer-controller \
          --image-scanning-configuration scanOnPush=true 

Step5: After the build completes, tag your image so, you can push the image to this repository:

    $ docker tag 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-load-balancer-controller:v2.2.1 <accountid>.dkr.ecr.eu-west-1.amazonaws.com/amazon/aws-load-balancer-controller:v2.2.1

Step6: Run the following command to push this image to your newly created AWS repository:

    $ docker push <accountid>.dkr.ecr.eu-west-1.amazonaws.com/amazon/aws-load-balancer-controller:v2.2.1

AWS Service annotations for LB Ingress Controller

Here is the link to get the AWS ELB service annotations for LB Ingress controller

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Requirements

No requirements.

Providers

Name Version
aws 3.49.0
helm 2.2.0
kubernetes 2.3.2

Modules

No modules.

Resources

Name Type
aws_iam_policy.eks-lb-controller-policy resource
aws_iam_role.eks-lb-controller-role resource
aws_iam_role_policy_attachment.eks-role-policy-attachement resource
helm_release.lb-ingress resource
helm_release.lb-ingress-crd resource
kubernetes_service_account.eks-lb-controller-sa resource
aws_iam_policy_document.eks-lb-controller-assume-policy data source

Inputs

Name Description Type Default Required
aws_lb_helm_chart_version n/a string "1.2.3" no
aws_lb_image_tag n/a string "v2.2.1" no
clusterName n/a any n/a yes
eks_oidc_issuer_url n/a any n/a yes
eks_oidc_provider_arn n/a any n/a yes
image_repo_name n/a string "amazon/aws-load-balancer-controller" no
private_container_repo_url n/a any n/a yes
public_docker_repo n/a any n/a yes
public_image_repo n/a string "602401143452.dkr.ecr.us-west-2.amazonaws.com" no
replicas n/a string "2" no

Outputs

Name Description
ingress_name n/a
ingress_namespace n/a