mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
26 lines
727 B
YAML
26 lines
727 B
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/dragonflydb.io/dragonfly_v1alpha1.json
|
|
apiVersion: dragonflydb.io/v1alpha1
|
|
kind: Dragonfly
|
|
metadata:
|
|
name: dragonfly
|
|
spec:
|
|
image: ghcr.io/dragonflydb/dragonfly:v1.24.0@sha256:9d7fbf70085b5bb13570e2a4019cc14e6bf74576eec339de89c6aeda7025c847
|
|
replicas: 4 # set to the number of nodes in the cluster
|
|
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
|