vault-token-injector
Helm chartv4.0.0App v2.1.0
A Helm chart for Fairwinds vault-token-injector This will inject vault tokens and address variables into circle builds, terraform cloud workspaces, or spacelift stacks on a schedule
About this chart
Vault Token Injector Chart
A Helm chart for Fairwinds vault-token-injector
This will inject vault tokens and address variables into circle builds, terraform cloud workspaces, or spacelift stacks on a schedule
Upgrading
v2.0.0
Chart version 2.0.0 introduced a metrics endpoint by default.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| deployment.enabled | bool | true | If true, will be run as a deployment. Technically both cronjob and deployment can be enabled at the same time, but why? |
| deployment.replicaCount | int | 1 | We currently only recommend a single instance |
| deployment.probes.liveness.enabled | bool | false | If true, a liveness probe will be set on the deployment pods. This probe fails if any errors are encountered. |
| deployment.metrics.enabled | bool | true | If true, a prometheus endpoint will be enabled on port 4329 |
| deployment.metrics.service.enabled | bool | true | |
| deployment.metrics.serviceMonitor.enabled | bool | false | |
| deployment.metrics.serviceMonitor.interval | string | "60s" | |
| deployment.metrics.serviceMonitor.scrapeTimeout | string | "30s" | |
| deployment.metrics.serviceMonitor.labels | object | {} | |
| cronjob.enabled | bool | false | If true, will be run as a cronjob. Technically both cronjob and deployment can be enabled at the same time, but why? |
| cronjob.schedule | string | "7 * * * *" | The schedule for the cronjob |
| cronjob.failedJobsHistoryLimit | int | 1 | The number of failed jobs to keep around |
| cronjob.activeDeadlineSeconds | int | 120 | The amount of time to allow the job to run |
| cronjob.backoffLimit | int | 1 | the cronjob backoffLimit |
| cronjob.successfulJobsHistoryLimit | int | 1 | The number of successful jobs to keep around |
| cronjob.restartPolicy | string | "OnFailure" | restartPolicy |
| circleToken | string | "replaceme" | A token for interacting with CircleCI |
| tfCloudToken | string | "replaceme" | A token for interacting with TFCloud |
| existingSecret | string | "" | An existing secret that contains the environment variables CIRCLEC_CI_TOKEN and TFCLOUD_TOKEN |
| vaultAddress | string | "https://vault.example.com" | The vault address to get tokens from |
| vaultTokenFile | string | "" | A file containing a vault token. Optional. |
| config | object | {"circleci":[{"env_variable":"VAULT_TOKEN","name":"FairwindsOps/example","vault_role":"some-vault-role"}],"vaultAddress":"https://vault.example.com"} | The configuration of the vault-token-injector |
| logLevel | int | 1 | The klog log level (1-10). WARNING: Log level 10 will print secrets to logs |
| image.repository | string | "us-docker.pkg.dev/fairwinds-ops/oss/vault-token-injector" | The image repository to pull the vault-token-injector image from |
| image.pullPolicy | string | "Always" | This is recommended to be set as Always |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | A list of imagePullSecrets to use |
| nameOverride | string | "" | Overrides the name in the main template |
| fullnameOverride | string | "" | Overrides the fullname in the main template |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| podAnnotations | object | {} | Annotations to add to the pod |
| podSecurityContext | object | {} | a podSecurityContext to apply |
| securityContext | object | {"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":10000} | securityContext for the containers |
| resources | object | {"limits":{"cpu":"20m","memory":"128Mi"},"requests":{"cpu":"20m","memory":"128Mi"}} | resources block for the pod |
| nodeSelector | object | {} | A nodeSelector block for the pod |
| tolerations | list | [] | tolerations block for the pod |
| affinity | object | {} | affinity block for the pod |
Deploy vault-token-injector with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vault-token-injector 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 chartvault-token-injector is pinned at v4.0.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