feat: HA and move PVC to redundant storage class

This commit is contained in:
Tanguy Herbron 2024-01-20 00:36:19 +01:00
parent 3cf73589e1
commit 24995c3a05
3 changed files with 12 additions and 5 deletions

View File

@ -5,11 +5,11 @@ metadata:
namespace: synapse
spec:
instances: 1
instances: 3
storage:
size: 5Gi
storageClass: flat-storage-class
storageClass: redundant-storage-class
bootstrap:
initdb:

View File

@ -4,7 +4,7 @@ metadata:
name: synapse
namespace: synapse
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: synapse
@ -13,6 +13,13 @@ spec:
labels:
app: synapse
spec:
topologySpreadConstraints:
- maxSkrew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: synapse
securityContext:
fsGroup: 991
containers:

View File

@ -5,8 +5,8 @@ metadata:
namespace: synapse
spec:
accessModes:
- ReadWriteOnce
storageClassName: flat-storage-class
- ReadWriteMany
storageClassName: redundant-storage-class
resources:
requests:
storage: 1Gi