39 lines
941 B
YAML
39 lines
941 B
YAML
apiVersion: dragonflydb.io/v1alpha1
|
|
kind: Dragonfly
|
|
metadata:
|
|
name: stalwart
|
|
namespace: dragonfly
|
|
spec:
|
|
replicas: 2
|
|
image: docker.dragonflydb.io/dragonflydb/dragonfly:v2.0.2@sha256:061f00b201b58e12f974e4e96c761a881ee1c05e9d8ee967466a604b7299753b
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- --proactor_threads=1
|
|
- --maxmemory=256MiB
|
|
- --cache_mode=true
|
|
- --uring_disable_iowait=true
|
|
aclFromSecret:
|
|
name: stalwart-acl
|
|
key: acl
|
|
containerSecurityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
add:
|
|
- SETUID
|
|
- SETGID
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 384Mi
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: DoNotSchedule
|
|
labelSelector:
|
|
matchLabels:
|
|
app: stalwart
|
|
app.kubernetes.io/name: dragonfly
|