secrets-injector

by 1Password

Helm chartv1.2.1App 1.0.3

A Helm chart for deploying 1Password Secrets Injector

About this chart

1Password Kubernetes Secrets Injector Helm chart

Installation

Installing the Helm Chart with default configurations will deploy 1Password Kubernetes Secrets Injector in your default Namespace.

helm install --generate-name 1password/secrets-injector

Configuration Values

The 1Password Kubernetes Secrets Injector Helm chart offers many configuration options for deployment. Please refer to the list below for information on what configuration options are available as well as what the default configuration options are.

From the Official Helm Install Guide:

To override values in a chart, use either the '--values' flag and pass in a file or use the '--set' flag and pass configuration from the command line, to force a string value use '--set-string'. In case a value is large and therefore you want not to use neither '--values' nor '--set', use '--set-file' to read the single large value from file.

For example:

$ helm install -f myvalues.yaml injector ./secrets-injector

or

$ helm install --set injector.applicationName=injector injector ./secrets-injector

Custom Environment Variables

The injector container supports additional environment variables beyond those explicitly defined in the Helm chart. These can be defined using a key map for each custom variable. An example is shown below:

injector:
  customEnvVars:
    - name: "CUSTOM_ENV_VAR1"
      value: "customvar2"
    - name: "CUSTOM_ENV_VAR2"
      value: "customvar2"

Values

KeyTypeDefaultDescription
injector.annotationsobject{}Additional annotations to be added to the Secrets Injector deployment resource.
injector.applicationNamestring"secrets-injector"The name of 1Password Kubernetes Secrets Injector Application
injector.customEnvVarslist[]Custom Environment Variables for the 1Password Secrets Injector container that are not specified in this helm chart.
injector.imagePullPolicystring"IfNotPresent"The 1Password Secrets Injector docker image policy.
injector.imagePullSecretslist[]Global list of secret names to use as image pull secrets for all pod specs in the chart. Secrets must exist in the same namespace
injector.imageRepositorystring"docker.io/1password/kubernetes-secrets-injector"The 1Password Secrets Injector docker image repository
injector.labelsobject{}Additional labels to be added to the Secrets Injector deployment resource.
injector.nodeSelectorobject{}Node selector stanza for the Secrets Injector pod
injector.podAnnotationsobject{}Additional annotations to be added to the Secrets Injector pod.
injector.podLabelsobject{}Additional labels to be added to the Secrets Injector pod.
injector.podSecurityContextobject{"fsGroup":65532,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}}Pod securityContext for the 1Password Secrets Injector pod.
injector.portint443The port the Secrets Injector exposes
injector.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container securityContext for the 1Password Secrets Injector container.
injector.targetPortint8443The port the Secrets Injector API sends requests to the pod
injector.tolerationslist[]List of tolerations to be added to the Secrets Injector pod.
injector.versionstring"{{ .Chart.AppVersion }}"The 1Password Secrets Injector version to pull.

Deploy secrets-injector with OpenTenant

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

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsecrets-injector is pinned at v1.2.1 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