aws-alb-ingress-controller

by joaquinito2051

Helm chartv0.1.7App v1.1.2

A Helm chart for AWS ALB Ingress Controller

About this chart

aws-alb-ingress-controller

aws-alb-ingress-controller satisfies Kubernetes ingress resources by provisioning Application Load Balancers.

TL;DR:

helm install <helm-repo>/aws-alb-ingress-controller --set clusterName=MyClusterName --set autoDiscoverAwsRegion=true --set autoDiscoverAwsVpcID=true

helm install incubator/aws-alb-ingress-controller --set clusterName=MyClusterName --set autoDiscoverAwsRegion=true --set autoDiscoverAwsVpcID=true

Introduction

This chart bootstraps an alb-ingress-controller deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.9+ with Beta APIs enabled

Enable helm incubator repository

Installing the Chart

To install the chart with the release name my-release into kube-system:

helm install <helm-repo>/aws-alb-ingress-controller --set clusterName=MyClusterName --set autoDiscoverAwsRegion=true --set autoDiscoverAwsVpcID=true --name my-release --namespace kube-system

helm install incubator/aws-alb-ingress-controller --set clusterName=MyClusterName --set autoDiscoverAwsRegion=true --set autoDiscoverAwsVpcID=true --name my-release --namespace kube-system The command deploys alb-ingress-controller on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the alb-ingress-controller chart and their default values.

ParameterDescriptionDefault
clusterName(REQUIRED) Resources created by the ALB Ingress controller will be prefixed with this stringN/A
awsRegionAWS region of k8s cluster, required if ec2metadata is unavailable from controller podus-west-2
autoDiscoverAwsRegionauto discover awsRegion from ec2metadata, omit awsRegion when this set to truefalse
awsVpcIDAWS VPC ID of k8s cluster, required if ec2metadata is unavailable from controller podvpc-xxx
autoDiscoverAwsVpcIDauto discover awsVpcID from ec2metadata, omit awsRegion when this set to truefalse
image.repositorycontroller container image repository894847497797.dkr.ecr.us-west-2.amazonaws.com/aws-alb-ingress-controller
image.tagcontroller container image tagv1.0.1
image.pullPolicycontroller container image pull policyIfNotPresent
enableReadinessProbeenable readinessProbe on controller podfalse
enableLivenessProbeenable livenessProbe on controller podfalse
extraEnvmap of environment variables to be injected into the controller pod{}
nodeSelectornode labels for controller pod assignment{}
tolerationscontroller pod toleration for taints{}
podAnnotationsannotations to be added to controller pod{}
podLabelslabels to be added to controller pod{}
resourcescontroller pod resource requests & limits{}
rbac.createIf true, create & use RBAC resourcestrue
rbac.serviceAccountNameServiceAccount ALB ingress controller will use (ignored if rbac.create=true)default
scope.ingressClassIf provided, the ALB ingress controller will only act on Ingress resources annotated with this classalb
scope.singleNamespaceIf true, the ALB ingress controller will only act on Ingress resources in a single namespacefalse (watch all namespaces)
scope.watchNamespaceIf scope.singleNamespace=true, the ALB ingress controller will only act on Ingress resources in this namespace"" (namespace of the ALB ingress controller)
helm install <helm-repo>/aws-alb-ingress-controller --set clusterName=MyClusterName --set autoDiscoverAwsRegion=true --set autoDiscoverAwsVpcID=true --name my-release --namespace kube-system 

helm install incubator/aws-alb-ingress-controller --set clusterName=MyClusterName --set autoDiscoverAwsRegion=true --set autoDiscoverAwsVpcID=true --name my-release --namespace kube-system Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install <helm-repo>/aws-alb-ingress-controller --name my-release -f values.yaml

helm install incubator/aws-alb-ingress-controller --name my-release -f values.yaml

Tip: You can use the default values.yaml

Tip: If you use aws-alb-ingress-controller as releaseName, the generated pod name will be shorter.(e.g. aws-alb-ingress-controller-66cc9fb67c-7mg4w instead of my-release-aws-alb-ingress-controller-66cc9fb67c-7mg4w)

Deploy aws-alb-ingress-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-alb-ingress-controller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartaws-alb-ingress-controller is pinned at v0.1.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply