32 lines
813 B
YAML
32 lines
813 B
YAML
---
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/dragonflydb.io/dragonfly_v1alpha1.json
|
|
apiVersion: dragonflydb.io/v1alpha1
|
|
kind: Dragonfly
|
|
metadata:
|
|
name: dragonfly
|
|
spec:
|
|
image: ghcr.io/dragonflydb/dragonfly:v1.25.6
|
|
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
|