diff --git a/charts/atlantis/templates/redis.yaml b/charts/atlantis/templates/redis.yaml index cad91ec3..e61cb925 100644 --- a/charts/atlantis/templates/redis.yaml +++ b/charts/atlantis/templates/redis.yaml @@ -14,6 +14,7 @@ spec: args: - --maxmemory=$(MAX_MEMORY)Mi - --proactor_threads=1 + - --cluster_mode=emulated env: - name: MAX_MEMORY valueFrom: diff --git a/charts/sorcerer/templates/redis.yaml b/charts/sorcerer/templates/redis.yaml index 57156639..5aa33d45 100644 --- a/charts/sorcerer/templates/redis.yaml +++ b/charts/sorcerer/templates/redis.yaml @@ -11,11 +11,20 @@ metadata: app.kubernetes.io/instance: dragonfly {{- include "Sorcerer.labels" . | nindent 4 }} spec: + args: + - --maxmemory=$(MAX_MEMORY)Mi + - --proactor_threads=1 + - --cluster_mode=emulated + env: + - name: MAX_MEMORY + valueFrom: + resourceFieldRef: + resource: limits.memory + divisor: 1Mi replicas: {{ .Values.redis.replicas| default "1" }} resources: requests: cpu: 150m - memory: 128Mi limits: memory: 256Mi authentication: