connect

by kfirfer

Helm chartv1.15.0App 1.7.2

A Helm chart for deploying 1Password Connect and the 1Password Connect Kubernetes Operator

About this chart

1Password Connect

Deploying 1Password Connect

Installing the Helm Chart with default configurations will deploy 1Password Connect in your default Namespace. However, Using 1Password Connect in Kubernetes requires that a 1password-credentials.json file be stored as a Kubernetes Secret. This credentials file can be saved as a Kubernetes secret by setting the file in your helm install command:

helm install connect 1password/connect --set-file connect.credentials=<path/to/1password-credentials.json>

More information about 1Password Connect and how to generate a 1password-credentials.json file can be found at https://support.1password.com/secrets-automation/.

1Password Connect Kubernetes Operator

Deploying 1Password Connect Kubernetes Operator

In order to deploy the 1Password Connect Kubernetes Operator along side 1Password Connect --set operator.create=true in your install command.

Please note the following:

This operator expects that a secret containing an API token for 1Password Connect is saved to the configured namespace. Creation of a secret for the token can be automated by the Helm Chart by using --set operator.token.value=<token>.

If you would prefer to create the token secret manually, the token can be saved as a Kubernetes secret using the following command:

kubectl create secret generic <token-name> --from-literal=token=<OP_CONNECT_TOKEN> --namespace=<namespace>

More information about 1Password Connect and how to generate a 1Password Connect API token can be found at https://support.1password.com/secrets-automation/.

To deploy the Kubernetes operator without also deploying 1Password Connect (for example, to deploy multiple operators on a single cluster), use --set connect.create=false in your install command.

Configuration Values

The 1Password Connect 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 connect ./connect

or

helm install --set connect.applicationName=connect connect ./connect

Values

KeyTypeDefaultDescription
connect.createbooleantrueDenotes whether the 1Password Connect server will be deployed
connect.replicasinteger1The number of replicas to run the 1Password Connect deployment
connect.applicationNamestring"onepassword-connect"The name of 1Password Connect Application
connect.hoststring"onepassword-connect"The name of 1Password Connect Host
connect.api.imageRepositorystring"1password/connect-apiThe 1Password Connect API repository
connect.api.namestring"connect-api"The name of the 1Password Connect API container
connect.api.resourcesobject{}The resources requests/limits for the 1Password Connect API pod
connect.api.httpPortinteger8080The port the Connect API is served on when TLS is disabled
connect.api.httpsPortinteger8443The port the Connect API is served on when TLS is enabled
connect.api.logLevelstringinfoLog level of the Connect API container. Valid options are: trace, debug, info, warn, error.
connect.credentialsjsonStringContents of the 1password-credentials.json file for Connect. Can be set be adding --set-file connect.credentials=<path/to/1password-credentials.json> to your helm install command
connect.credentials_base64stringBase64-encoded contents of the 1password-credentials.json file for Connect. This can be used instead of connect.credentials in case supplying raw JSON to connect.credentials leads to issues.
connect.credentialsKeystring"1password-credentials.json"The key for the 1Password Connect Credentials stored in the credentials secret, the credentials must be encoded as a base64 string
connect.credentialsNamestring"op-credentials"The name of Kubernetes Secret containing the 1Password Connect credentials
connect.dataVolume.namestring"shared-data"The name of the shared volume used between 1Password Connect Containers
connect.dataVolume.typestring"emptyDir"The type of the shared volume used between 1Password Connect Containers
connect.dataVolume.valuesobject{}Desribes the fields and values for configuration of shared volume for 1Password Connect
connect.imagePullPolicystring"IfNotPresent"The 1Password Connect API image pull policy
connect.ingress.annotationsobject{}The 1Password Connect Ingress Annotations
connect.ingress.enabledboolfalseThe boolean value to enable/disable the 1Password Connect
connect.ingress.extraPathslist[]Additional Ingress Paths
connect.ingress.hosts[0].hoststring"chart-example.local"The 1Password Connect Ingress Hostname
connect.ingress.hosts[0].pathslist[]The 1Password Connect Ingress Path
connect.ingress.ingressClassNamestring""Optionally use ingressClassName instead of deprecated annotation.
connect.ingress.labelsobject{}Ingress labels for 1Password Connect
connect.ingress.pathTypestring"Prefix"Ingress PathType see docs
connect.ingress.tlslist[]Ingress TLS see docs
connect.nodeSelectorobject{}Node selector stanza for the Connect pod
connect.probes.readinessbooleantrueDenotes whether the 1Password Connect API readiness probe will operate and ensure the pod is ready before serving traffic
connect.probes.livenessbooleantrueDenotes whether the 1Password Connect API will be continually checked by Kubernetes for liveness and restarted if the pod becomes unresponsive
connect.annotationsobject{}Additional annotations to be added to the Connect API deployment resource.
connect.labelsobject{}Additional labels to be added to the Connect API deployment resource.
connect.podAnnotationsobject{}Additional annotations to be added to the Connect API pods.
connect.podLabelsobject{}Additional labels to be added to the Connect API pods.
connect.serviceTypestringNodePortThe type of Service resource to create for the Connect API and sync services.
connect.serviceAnnotationsobject{}Additional annotations to be added to the service.
connect.sync.imageRepositorystring"1password/connect-sync"The 1Password Connect Sync repository
connect.sync.namestring"connect-sync"The name of the 1Password Connect Sync container

Deploy connect with OpenTenant

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