feat: HA and move PVC to redundant storage class
This commit is contained in:
parent
3cf73589e1
commit
24995c3a05
@ -5,11 +5,11 @@ metadata:
|
|||||||
namespace: synapse
|
namespace: synapse
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
instances: 1
|
instances: 3
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
storageClass: flat-storage-class
|
storageClass: redundant-storage-class
|
||||||
|
|
||||||
bootstrap:
|
bootstrap:
|
||||||
initdb:
|
initdb:
|
||||||
|
@ -4,7 +4,7 @@ metadata:
|
|||||||
name: synapse
|
name: synapse
|
||||||
namespace: synapse
|
namespace: synapse
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: synapse
|
app: synapse
|
||||||
@ -13,6 +13,13 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: synapse
|
app: synapse
|
||||||
spec:
|
spec:
|
||||||
|
topologySpreadConstraints:
|
||||||
|
- maxSkrew: 1
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
whenUnsatisfiable: DoNotSchedule
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: synapse
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 991
|
fsGroup: 991
|
||||||
containers:
|
containers:
|
||||||
|
@ -5,8 +5,8 @@ metadata:
|
|||||||
namespace: synapse
|
namespace: synapse
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteMany
|
||||||
storageClassName: flat-storage-class
|
storageClassName: redundant-storage-class
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
|
Loading…
Reference in New Issue
Block a user