vaultwarden

by andrenarchy

Helm chartv6.30.0App 1.37.5Verified publisher

Vaultwarden is a Bitwarden compatable server in Rust

About this chart

vaultwarden

Helm chart originally based on a chart from k8s-at-home.

Source Code

Requirements

Kubernetes: >=1.16.0-0

Dependencies

RepositoryNameVersion
https://charts.bitnami.com/bitnamimariadb11.0.14
https://charts.bitnami.com/bitnamipostgresql11.6.12
https://library-charts.k8s-at-home.comcommon4.5.2

TL;DR

helm repo add andrenarchy https://andrenarchy.github.io/helm-charts/
helm repo update
helm install vaultwarden andrenarchy/vaultwarden

Installing the Chart

To install the chart with the release name vaultwarden

helm install vaultwarden andrenarchy/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" \
    andrenarchy/vaultwarden

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

helm install vaultwarden andrenarchy/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.
mariadb.enabledboolfalse
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
postgresql.enabledboolfalse
serviceobjectSee values.yamlConfigures service settings for the chart. Normally this does not need to be modified.
strategy.typestring"Recreate"

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.30.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