feat(HA): Bump pod counts to 2

This commit is contained in:
Tanguy Herbron 2024-01-15 08:26:56 +01:00
parent fb9b1a7697
commit c9fa46a04c
4 changed files with 38 additions and 2 deletions

View File

@ -3,8 +3,9 @@ kind: Cluster
metadata:
name: vaultwarden-db
namespace: vaultwarden
spec:
instances: 1
instances: 2
storage:
size: 1Gi
@ -28,3 +29,25 @@ spec:
limits:
cpu: 500m
memory: 500Mi
backup:
barmanObjectStore:
destinationPath: s3://cluster-example-full-backup
endpointURL: http://10.10.0.32:9000
s3Credentials:
accessKeyId:
name: backup-creds
key: ACCESS_KEY_ID
secretAccessKey:
name: backup-creds
key: ACCESS_SECRET_KEY
region:
name: backup-creds
key: REGION
wal:
compression: gzip
data:
compression: gzip
immediateCheckpoint: false
jobs: 2
retentionPolicy: "30d"

View File

@ -4,7 +4,7 @@ metadata:
name: vaultwarden
namespace: vaultwarden
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: vaultwarden

View File

@ -7,4 +7,5 @@ resources:
- database.yaml
- service.yaml
- ingress.yaml
- pvc.yaml
- deployment.yaml

12
manifests/pvc.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vaultwarden-pvc
namespace: vaultwarden
spec:
accessModes:
- ReadWriteMany
storageClassName: redundant-storage-class
resources:
requests:
storage: 1Gi