From 1c47c0d24a0cd48c805e8846f1aa5b1cc5f5421e Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 12 Apr 2023 20:15:13 -0400 Subject: [PATCH] Add vaultwarden --- cluster/apps/tools/kustomization.yaml | 3 +- .../apps/tools/vaultwarden/helm-release.yaml | 57 +++++++++++++++++++ .../apps/tools/vaultwarden/kustomization.yaml | 4 ++ docs/todo.md | 2 +- 4 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 cluster/apps/tools/vaultwarden/helm-release.yaml create mode 100644 cluster/apps/tools/vaultwarden/kustomization.yaml diff --git a/cluster/apps/tools/kustomization.yaml b/cluster/apps/tools/kustomization.yaml index 218a175..d2233c5 100644 --- a/cluster/apps/tools/kustomization.yaml +++ b/cluster/apps/tools/kustomization.yaml @@ -3,4 +3,5 @@ kind: Kustomization resources: - ./namespace.yaml - ./network_policy.yaml -- ./transfersh \ No newline at end of file +- ./transfersh +- ./vaultwarden \ No newline at end of file diff --git a/cluster/apps/tools/vaultwarden/helm-release.yaml b/cluster/apps/tools/vaultwarden/helm-release.yaml new file mode 100644 index 0000000..36456bb --- /dev/null +++ b/cluster/apps/tools/vaultwarden/helm-release.yaml @@ -0,0 +1,57 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: vaultwarden + namespace: tools +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: vaultwarden/server + tag: latest + + service: + main: + ports: + http: + port: 80 + + probes: + liveness: + enabled: false + + ingress: + main: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-production" + traefik.ingress.kubernetes.io/router.entrypoints: websecure + hosts: + - host: "bitwarden.${SECRET_NEW_DOMAIN}" + paths: + - path: / + pathType: Prefix + + persistence: + data: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Kubernetes/vaultwarden + mountPath: /data + + resources: + requests: + cpu: 1m + memory: 50Mi + + limits: + memory: 200Mi \ No newline at end of file diff --git a/cluster/apps/tools/vaultwarden/kustomization.yaml b/cluster/apps/tools/vaultwarden/kustomization.yaml new file mode 100644 index 0000000..ea3145d --- /dev/null +++ b/cluster/apps/tools/vaultwarden/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./helm-release.yaml \ No newline at end of file diff --git a/docs/todo.md b/docs/todo.md index 65413df..b3770a0 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -2,7 +2,7 @@ TODO: - [ ] [jellyplex-watched](https://github.com/luigi311/JellyPlex-Watched) - [ ] Tools: - - [ ] transfersh + - [x] transfersh - [ ] portainer - [ ] vaultwarden - [ ] hastebin