bitwarden

by serge.logvinov

Helm chartv0.10.5App 1.37.5Verified publisher

A Helm chart to deploy Bitwarden.

About this chart

bitwarden

A Helm chart to deploy Bitwarden.

Homepage: https://github.com/sergelogvinov/helm-charts

Maintainers

NameEmailUrl
sergelogvinovhttps://github.com/sergelogvinov

Source Code

Example:

# bitwarden.yaml

envs:
  SMTP_USERNAME: 'username'
  SMTP_PASSWORD: 'password'
  ADMIN_TOKEN: 'super-token'

config:
  SMTP_FROM_NAME: 'VaultWarden'
  SMTP_HOST: 'smtp.gmail.com'
  SMTP_SECURITY: starttls

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: vault.example.com
  tls:
    - secretName: vault.example.com-tls
      hosts:
        - vault.example.com

persistence:
  enabled: true
  size: 10Gi

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"vaultwarden/server"
image.pullPolicystring"IfNotPresent"
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
envSecretNamestring""Kubernetes Secrets Name resource for environment variables. if set, the secrets will be mounted as environment variables.
envsobject{"ADMIN_TOKEN":"token","DISABLE_ADMIN_TOKEN":"false","SMTP_PASSWORD":"password","SMTP_USERNAME":"username"}Secret environment variables. Uses if not set the envSecretName
envs.SMTP_USERNAMEstring"username"smtp username
envs.SMTP_PASSWORDstring"password"smtp password
envs.ADMIN_TOKENstring"token"Admin token, use /vaultwarden hash to encrypt password
envs.DISABLE_ADMIN_TOKENstring"false"After creation, better to disable admin portal
envlist[]Deployment environment variables example: - name: DATABASE_URL value: uri
configobject{"EXTENDED_LOGGING":true,"INVITATIONS_ALLOWED":true,"INVITATION_ORG_NAME":"Bitwarden","ORG_ATTACHMENT_LIMIT":1048576,"ROCKET_CLI_COLORS":"off","ROCKET_WORKERS":10,"SHOW_PASSWORD_HINT":false,"SIGNUPS_ALLOWED":false,"SIGNUPS_DOMAINS_WHITELIST":"domain.tld","SIGNUPS_VERIFY":false,"SMTP_FROM":"[email protected]","SMTP_FROM_NAME":"Vault","SMTP_HOST":"smtp.domain.tld","SMTP_PORT":587,"SMTP_SECURITY":"starttls","USER_ATTACHMENT_LIMIT":1048576,"WEB_VAULT_ENABLED":true}Official documentation https://github.com/dani-garcia/vaultwarden/wiki/Configuration-overview
serviceAccountobject{"annotations":{},"create":false,"name":""}Pods Service Account. ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podSecurityContextobject{"fsGroup":33,"fsGroupChangePolicy":"OnRootMismatch","runAsGroup":33,"runAsNonRoot":true,"runAsUser":33}Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":33,"runAsUser":33,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
serviceobject{"ipFamilies":["IPv4"],"port":80,"portWSocket":3012,"type":"ClusterIP"}Bitwarden service parameters ref: https://kubernetes.io/docs/user-guide/services/
service.typestring"ClusterIP"service type
service.portint80service port
service.portWSocketint3012websocket service port
ingressobject{"annotations":{"nginx.ingress.kubernetes.io/limit-connections":"25","nginx.ingress.kubernetes.io/limit-rps":"15","nginx.ingress.kubernetes.io/proxy-body-size":"1024m","nginx.ingress.kubernetes.io/proxy-connect-timeout":"10","nginx.ingress.kubernetes.io/proxy-read-timeout":"1800","nginx.ingress.kubernetes.io/proxy-send-timeout":"1800"},"className":"nginx","enabled":false,"hosts":[{"host":"vault.local"}],"tls":[]}Bitwarden ingress parameters ref: http://kubernetes.io/docs/user-guide/ingress/
resourcesobject{"limits":{"cpu":"500m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
persistenceobject{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":false,"size":"10Gi"}Persistence parameters ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
updateStrategyobject{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}Controller deployment update strategy type. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
nodeSelectorobject{}Node labels for controller assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
tolerationslist[]Tolerations for controller assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
affinityobject{}Affinity for controller assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

Deploy bitwarden with OpenTenant

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