File tree Expand file tree Collapse file tree 4 files changed +91
-0
lines changed
clusters/svc.ez.soeren.cloud/vaultwarden Expand file tree Collapse file tree 4 files changed +91
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : " external-secrets.io/v1beta1"
3
+ kind : " ExternalSecret"
4
+ metadata :
5
+ name : " vaultwarden-restic-pvc"
6
+ spec :
7
+ refreshInterval : " 1h"
8
+ secretStoreRef :
9
+ name : " vault"
10
+ kind : " ClusterSecretStore"
11
+ target :
12
+ name : " vaultwarden-restic-pvc"
13
+ creationPolicy : " Owner"
14
+ data :
15
+ - secretKey : " AWS_ACCESS_KEY_ID"
16
+ remoteRef :
17
+ key : " secret/soeren.cloud/env/prod/restic/vaultwarden/aws-credentials"
18
+ property : " AWS_ACCESS_KEY_ID"
19
+ - secretKey : " AWS_SECRET_ACCESS_KEY"
20
+ remoteRef :
21
+ key : " secret/soeren.cloud/env/prod/restic/vaultwarden/aws-credentials"
22
+ property : " AWS_SECRET_ACCESS_KEY"
23
+ - secretKey : " RESTIC_PASSWORD"
24
+ remoteRef :
25
+ key : " secret/soeren.cloud/env/prod/restic/vaultwarden/restic"
26
+ property : " pass"
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : " kustomize.config.k8s.io/v1beta1"
3
+ kind : " Kustomization"
4
+ namespace : " vaultwarden"
5
+ resources :
6
+ - " namespace.yaml"
7
+ - pv.yaml
8
+ - external-secret-restic.yaml
9
+ - ../../../apps/vaultwarden
10
+ components :
11
+ - ../../../apps/vaultwarden/components/istio
12
+ - ../../../apps/vaultwarden/components/pvc
13
+ - ../../../apps/vaultwarden/components/restic-pvc
14
+ patches :
15
+ - target :
16
+ kind : " VirtualService"
17
+ name : " vaultwarden"
18
+ patch : |-
19
+ - op: "replace"
20
+ path: "/spec/hosts"
21
+ value:
22
+ - "vaultwarden.svc.ez.soeren.cloud"
23
+ configMapGenerator :
24
+ - name : vaultwarden-restic-pvc
25
+ options :
26
+ disableNameSuffixHash : true
27
+ literals :
28
+ - " RETENTION_DAYS=7"
29
+ - " RETENTION_WEEKS=4"
30
+ - " RETENTION_MONTHS=6"
31
+ - " RESTIC_TARGETS=/data"
32
+ - " RESTIC_REPOSITORY=s3:https://s3.amazonaws.com/soerenschneider-restic-prod/vaultwarden"
33
+ - " RESTIC_BACKUP_ID=vaultwarden"
34
+ - " SQLITE_FILE=/data/db.sqlite3"
Original file line number Diff line number Diff line change
1
+ ---
2
+ kind : " Namespace"
3
+ apiVersion : " v1"
4
+ metadata :
5
+ name : " yt-dlp-webui"
6
+ labels :
7
+ name : " yt-dlp-webui"
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : " v1"
3
+ kind : " PersistentVolume"
4
+ metadata :
5
+ name : " vaultwarden"
6
+ spec :
7
+ accessModes :
8
+ - " ReadWriteOnce"
9
+ capacity :
10
+ storage : " 50Gi"
11
+ storageClassName : " local-storage"
12
+ local :
13
+ path : " /mnt/k8s/vaultwarden"
14
+ claimRef :
15
+ namespace : " vaultwarden"
16
+ name : " vaultwarden"
17
+ nodeAffinity :
18
+ required :
19
+ nodeSelectorTerms :
20
+ - matchExpressions :
21
+ - key : " kubernetes.io/hostname"
22
+ operator : " In"
23
+ values :
24
+ - " k8s.ez.soeren.cloud"
You can’t perform that action at this time.
0 commit comments