gcp-serviceaccount-controller
by Helm
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.
| Parameter | Description | Default |
|---|---|---|
image.repository | gcp service account controller image | kiwigrid/gcp-serviceaccount-controller |
image.tag | gcp service account controller image tag | 0.2.4 |
image.pullPolicy | Image pull policy | IfNotPresent |
gcpCredentials | Service account key JSON file | Should 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 |
existingSecret | Existing secret containing the service account key JSON file | null |
existingSecretKey | The key to use within the existing secret | "credentials.json" |
disableRestrictionCheck | Disables namespace restriction | false |
resources | Resources | {} |
nodeSelector | NodeSelector | {} |
tolerations | Tolerations | [] |
affinity | Affinity | {} |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgcp-serviceaccount-controller is pinned at v0.3.2 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