Skip to content

Commit

Permalink
feat: add vaultwarden app
Browse files Browse the repository at this point in the history
  • Loading branch information
diogosilva30 committed Aug 7, 2024
1 parent fa36a46 commit c45b37c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
32 changes: 32 additions & 0 deletions apps/vaultwarden/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

helmGlobals:
chartHome: ../../charts

resources:
- manifests/ingress.yaml

helmCharts:
- name: vaultwarden
repo: https://guerzon.github.io/vaultwarden
namespace: vaultwarden
releaseName: vaultwarden
version: 0.23.1
valuesFile: values.yaml

replacements:
- source:
kind: Ingress
name: vaultwarden
fieldPath: metadata.annotations.dns
targets:
- select:
kind: Ingress
name: vaultwarden
fieldPaths:
- spec.rules.0.host
options:
# This keeps the "vault." prefix
delimiter: "."
index: 1
23 changes: 23 additions & 0 deletions apps/vaultwarden/manifests/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: vaultwarden
annotations:
gethomepage.dev/enabled: "true"
gethomepage.dev/description: Password manager
gethomepage.dev/group: Security
gethomepage.dev/icon: bitwarden
gethomepage.dev/name: Vaultwarden
spec:
rules:
# DNS will be replace by kustomize
- host: vault.$(DNS)
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: vaultwarden
port:
name: http
5 changes: 5 additions & 0 deletions apps/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Default values: https://github.com/guerzon/vaultwarden/blob/v0.23.1/charts/vaultwarden/values.yaml

domain: http://vault.lab.local:844
# Number of days to retain events stored in the database.
eventsDayRetain: 30

0 comments on commit c45b37c

Please sign in to comment.