cloudserviceaccount
by Snowplow
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
| Key | Type | Default | Description |
|---|---|---|---|
| deploy | bool | false | Whether to create a service-account |
| name | string | "my-service-account" | Name of the service-account to create |
| aws.roleARN | string | "" | IAM Role ARN to bind to the k8s service account |
| gcp.serviceAccount | string | "" | Service Account email to bind to the k8s service account |
| azure.managedIdentityId | string | "" | Workload managed identity id to bind to the k8s service account |
| secrets | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudserviceaccount is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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