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.33.1@sha256:de1a932e51bf50d96bb8bee1b5bde96b429de38e3cab369238aeec3a93f5fdba
|
|
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
|