aws-target-group-binding

by Snowplow

Helm chartv0.1.0Verified publisher

A Helm chart for deploying a TargetGroupBinding for use with the AWS LoadBalancer Controller

About this chart

aws-target-group-binding

A Helm chart for deploying a TargetGroupBinding resource for use with the AWS LoadBalancer Controller.

TL;DR

helm repo add snowplow-devops https://snowplow-devops.github.io/helm-charts
helm install aws-target-group-binding snowplow-devops/aws-target-group-binding

Introduction

This chart will provision a TargetGroupBinding resource that can be combined with an externally provisioned AWS Loadbalancer to provide an ingress route into the defined kubernetes service.

Prerequisite

In order to use this chart you will first require the aws-load-balancer-controller-crds to be installed, this can be done using the chart below.

https://github.com/snowplow-devops/helm-charts/tree/main/charts/aws-load-balancer-controller-crds

helm upgrade --install aws-load-balancer-controller-crds --namespace kube-system snowplow-devops/aws-load-balancer-controller-crds

Installing the Chart

Install or upgrading the chart with default configuration:

helm upgrade --install aws-target-group-binding snowplow-devops/aws-target-group-binding

Uninstalling the Chart

To uninstall/delete the target-group-binding release:

helm delete target-group-binding

Configuration

KeyTypeDefaultDescription
serviceNamestring"myServiceName"Name of the service to add the binding against
servicePortint80The port the required service is running on
targetGroupARNstring"arn:1234:5678"Amazon Resource Name (ARN) for the TargetGroup you want to use.

Deploy aws-target-group-binding with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-target-group-binding 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-target-group-binding is pinned at v0.1.0 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