feat: implement backups to vaultwarden
This commit is contained in:
parent
84f703fabc
commit
f077980466
|
@ -2,7 +2,6 @@ apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: vaultwarden
|
name: vaultwarden
|
||||||
namespace: tools
|
|
||||||
spec:
|
spec:
|
||||||
interval: 5m
|
interval: 5m
|
||||||
chart:
|
chart:
|
||||||
|
@ -17,7 +16,7 @@ spec:
|
||||||
values:
|
values:
|
||||||
image:
|
image:
|
||||||
repository: vaultwarden/server
|
repository: vaultwarden/server
|
||||||
tag: "1.32.3"
|
tag: 1.32.3
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
|
@ -46,10 +45,14 @@ spec:
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
data:
|
data:
|
||||||
enabled: true
|
existingClaim: vaultwarden
|
||||||
type: hostPath
|
globalMounts:
|
||||||
hostPath: /mnt/MainPool/Kubernetes/vaultwarden
|
- path: /data
|
||||||
mountPath: /data
|
# data:
|
||||||
|
# enabled: true
|
||||||
|
# type: hostPath
|
||||||
|
# hostPath: /mnt/MainPool/Kubernetes/vaultwarden
|
||||||
|
# mountPath: /data
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
|
@ -1,4 +1,5 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
|
- ../../../../../common/templates/volsync
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
|
@ -0,0 +1,32 @@
|
||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &app vaultwarden
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
timeout: 5m
|
||||||
|
interval: 10m
|
||||||
|
targetNamespace: tools
|
||||||
|
path: ./kubernetes/main/apps/tools/vaultwarden
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: home-cluster
|
||||||
|
decryption:
|
||||||
|
provider: sops
|
||||||
|
secretRef:
|
||||||
|
name: sops-gpg
|
||||||
|
dependsOn:
|
||||||
|
- name: openebs
|
||||||
|
- name: openebs-sc
|
||||||
|
- name: volsync
|
||||||
|
postBuild:
|
||||||
|
substituteFrom:
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: cluster-settings
|
||||||
|
- kind: Secret
|
||||||
|
name: cluster-secrets
|
||||||
|
substitute:
|
||||||
|
APP: *app
|
||||||
|
VOLSYNC_CAPACITY: 5Gi
|
Loading…
Reference in New Issue