Run Stalwart as a 3-node StatefulSet coordinated through Valkey
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
# Stalwart's in-memory store (locks, rate limits, queue leases) and cluster
|
||||
# coordinator pub/sub. Ephemeral state, so no persistence; the operator runs it
|
||||
# cluster-mode, passwordless and without TLS behind valkey-mail-valkey.
|
||||
apiVersion: valkey.io/v1alpha1
|
||||
kind: ValkeyCluster
|
||||
metadata:
|
||||
name: mail-valkey
|
||||
namespace: mail
|
||||
spec:
|
||||
shards: 1
|
||||
replicas: 2
|
||||
image: docker.io/valkey/valkey:9.0.0
|
||||
exporter:
|
||||
enabled: false
|
||||
scheduling:
|
||||
node:
|
||||
spread:
|
||||
shard:
|
||||
mode: Required
|
||||
podDisruptionBudget:
|
||||
mode: Cluster
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
Reference in New Issue
Block a user