vaultwarden
by k8s-home-lab
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
| Repository | Name | Version |
|---|---|---|
| https://k8s-home-lab.github.io/helm-charts/ | common | 4.5.5 |
| oci://ghcr.io/cloudpirates-io/helm-charts | mariadb | 0.17.0 |
| oci://ghcr.io/cloudpirates-io/helm-charts | postgres | 0.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
| Key | Type | Default | Description |
|---|---|---|---|
| env | object | See below | environment variables. See image docs for more details. |
| env.DATA_FOLDER | string | "config" | Config dir |
| image.pullPolicy | string | "IfNotPresent" | image pull policy |
| image.repository | string | "vaultwarden/server" | image repository |
| image.tag | string | chart.appVersion | image tag |
| ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
| mariadb | object | See values.yaml | Enable and configure mariadb database subchart under this key. For more options see mariadb chart documentation |
| persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| postgresql | object | See values.yaml | Enable and configure postgresql database subchart under this key. For more options see postgresql chart documentation |
| service | object | See values.yaml | Configures service settings for the chart. Normally this does not need to be modified. |
| strategy.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvaultwarden is pinned at v6.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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