2024-09-05 16:04:37 -05:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/dragonflydb.io/dragonfly_v1alpha1.json
|
|
|
|
apiVersion: dragonflydb.io/v1alpha1
|
|
|
|
kind: Dragonfly
|
|
|
|
metadata:
|
|
|
|
name: dragonfly
|
|
|
|
spec:
|
2024-10-16 01:02:54 -05:00
|
|
|
image: ghcr.io/dragonflydb/dragonfly:v1.24.0
|
2024-09-05 16:04:37 -05:00
|
|
|
replicas: 3
|
|
|
|
env:
|
|
|
|
- name: MAX_MEMORY
|
|
|
|
valueFrom:
|
|
|
|
resourceFieldRef:
|
|
|
|
resource: limits.memory
|
|
|
|
divisor: 1Mi
|
|
|
|
args:
|
|
|
|
- --maxmemory=$(MAX_MEMORY)Mi
|
|
|
|
- --proactor_threads=2
|
|
|
|
- --cluster_mode=emulated
|
|
|
|
- --default_lua_flags=allow-undeclared-keys
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
limits:
|
|
|
|
memory: 512Mi
|
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkew: 1
|
|
|
|
topologyKey: "kubernetes.io/hostname"
|
|
|
|
whenUnsatisfiable: "DoNotSchedule"
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/part-of: dragonfly
|