vaultwarden

by k8s-home-lab

Helm chartv6.5.0App 1.37.5

Vaultwarden is a Bitwarden compatable server in Rust

About this chart

vaultwarden

Vaultwarden is a Bitwarden compatable server in Rust

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Source Code

Requirements

Kubernetes: >=1.32.0

Dependencies

RepositoryNameVersion
https://k8s-home-lab.github.io/helm-charts/common4.5.5
oci://ghcr.io/cloudpirates-io/helm-chartsmariadb0.17.0
oci://ghcr.io/cloudpirates-io/helm-chartspostgres0.22.1

TL;DR

helm repo add k8s-home-lab https://k8s-home-lab.github.io/helm-charts/
helm repo update
helm install vaultwarden k8s-home-lab/vaultwarden

Installing the Chart

To install the chart with the release name vaultwarden

helm install vaultwarden k8s-home-lab/vaultwarden

Uninstalling the Chart

To uninstall the vaultwarden deployment

helm uninstall vaultwarden

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install vaultwarden \
  --set env.TZ="America/New York" \
    k8s-home-lab/vaultwarden

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install vaultwarden k8s-home-lab/vaultwarden -f values.yaml

Custom configuration

The Vaultwarden chart requires the /config folder to exist. In order to provide this, some type of storage needs to be implemented. For testing purposes, the following config snippet will work:

persistence:
  config:
    enabled: true
    type: emptyDir

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
envobjectSee belowenvironment variables. See image docs for more details.
env.DATA_FOLDERstring"config"Config dir
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"vaultwarden/server"image repository
image.tagstringchart.appVersionimage tag
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
mariadbobjectSee values.yamlEnable and configure mariadb database subchart under this key. For more options see mariadb chart documentation
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
postgresqlobjectSee values.yamlEnable and configure postgresql database subchart under this key. For more options see postgresql chart documentation
serviceobjectSee values.yamlConfigures service settings for the chart. Normally this does not need to be modified.
strategy.typestring"Recreate"

Changelog

Version 6.5.0

Deploy vaultwarden with OpenTenant

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