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 a5f0027058
4 changed files with 37 additions and 2 deletions

View File

@ -3,8 +3,9 @@ kind: Cluster
metadata: metadata:
name: vaultwarden-db name: vaultwarden-db
namespace: vaultwarden namespace: vaultwarden
spec: spec:
instances: 1 instances: 2
storage: storage:
size: 1Gi size: 1Gi
@ -28,3 +29,24 @@ spec:
limits: limits:
cpu: 500m cpu: 500m
memory: 500Mi 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
jobs: 2
retentionPolicy: "30d"

View File

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

View File

@ -7,4 +7,5 @@ resources:
- database.yaml - database.yaml
- service.yaml - service.yaml
- ingress.yaml - ingress.yaml
- pvc.yaml
- deployment.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