gcp-serviceaccount-controller

by Helm

Helm chartv0.3.2App 0.3.0

A Helm chart for a Kubernetes Controller to create secrets for GCP Service Accounts

About this chart

Gcp Service Account Controller

  • Source: https://github.com/kiwigrid/gcp-serviceaccount-controller

gcp-serviceaccount-controller The Gcp service account controller creates services accounts and handles the roles and the secrets for kubernetes.

Introduction

This chart creates a kubernetes controller deployment on a Kubernetes cluster using the Helm package manager.

See also the docs for service account mangement and key management.

Installing the Chart

Install from remote URL with the release name gcp-account-controller into namespace infra:

$ helm upgrade -i gcp-account-controller kiwigrid/gcp-serviceaccount-controller --namespace infra \
    --set gcpCredentials="$(cat service-account.json | base64)"

Uninstalling the Chart

To uninstall/delete the my-release-name deployment:

$ helm delete my-release-name --purge

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

Configuration

The following table lists the configurable parameters of the GCP serviceaccount chart and their default values.

ParameterDescriptionDefault
image.repositorygcp service account controller imagekiwigrid/gcp-serviceaccount-controller
image.taggcp service account controller image tag0.2.4
image.pullPolicyImage pull policyIfNotPresent
gcpCredentialsService account key JSON fileShould be provided and base64 encoded when installing the chart and no existing secret is used, in this case a new secret will be created holding this service account
existingSecretExisting secret containing the service account key JSON filenull
existingSecretKeyThe key to use within the existing secret"credentials.json"
disableRestrictionCheckDisables namespace restrictionfalse
resourcesResources{}
nodeSelectorNodeSelector{}
tolerationsTolerations[]
affinityAffinity{}

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml kiwigrid/gcp-serviceaccount-controller

Tip: You can use the default values.yaml

Deploy gcp-serviceaccount-controller with OpenTenant

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