aws-iam-authenticator

by joaquinito2051

Helm chartv0.1.0App 1.0

A Helm chart for aws-iam-authenticator

About this chart

AWS IAM Authenticator

See https://github.com/kubernetes-sigs/aws-iam-authenticator

In particular, make sure that have configured your API server as in https://github.com/kubernetes-sigs/aws-iam-authenticator#how-do-i-use-it. (This chart only installs the DaemonSet and a ConfigMap.)

Values

| Config | Description | Default | | image.repository | Image repo | gcr.io/heptio-images/authenticator | | image.tag | Image tag | v0.1.0 | | image.pullPolicy | Image pull policy | IfNotPresent | | config | All the config, see below | {} | | resources | Pod resources | {} | | hostPathConfig.output | HostPath output | /srv/kubernetes/aws-iam-authenticator/ | | hostPathConfig.state | HostPath state | /srv/kubernetes/aws-iam-authenticator/ |

Config

The value set for config is where all the action happens - this is how you map AWS IAM roles to groups in the cluster. See the aws-iam-authenticator docs for all of the possible options for this.

A simple example values file might look like:

config:
  clusterID: mycluster.io
  server:
    mapRoles:
    - groups:
      - developers  # the name of a group within Kubernetes
      roleARN: arn:aws:iam::000000000000:role/developer  # the ARN of a role in AWS
      username: developer

Deploy aws-iam-authenticator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-iam-authenticator 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-iam-authenticator 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