cloudserviceaccount

by Snowplow

Helm chartv0.3.0Verified publisher

A helm chart which can create a ServiceAccount with cloud specific bindings

About this chart

cloudserviceaccount

A helm chart which can create a ServiceAccount with cloud specific bindings.

TL;DR

helm repo add snowplow-devops https://snowplow-devops.github.io/helm-charts
helm install cloudserviceaccount snowplow-devops/cloudserviceaccount

Introduction

This chart creates a service account with cloud specific bindings to allow IAM from the Cloud provider to be mapped onto a deployed service.

Note: Requires setting global.cloud to either aws or gcp.

Installing the Chart

Install or upgrading the chart with default configuration:

helm upgrade --install cloudserviceaccount snowplow-devops/cloudserviceaccount

Uninstalling the Chart

To uninstall/delete the cloudserviceaccount release:

helm delete cloudserviceaccount

Configuration

KeyTypeDefaultDescription
deployboolfalseWhether to create a service-account
namestring"my-service-account"Name of the service-account to create
aws.roleARNstring""IAM Role ARN to bind to the k8s service account
gcp.serviceAccountstring""Service Account email to bind to the k8s service account
azure.managedIdentityIdstring""Workload managed identity id to bind to the k8s service account
secretslist[]List of secrets allowed to be used by pods running using this ServiceAccount

Deploy cloudserviceaccount with OpenTenant

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