Changes Redis Container to Valkey

This commit is contained in:
2025-01-08 20:48:16 -03:00
parent f56038ece5
commit c5ed394bb9
2 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
apiVersion: "descheduler/v1alpha2"
kind: "DeschedulerPolicy"
profiles:
- name: default
pluginConfig:
- name: "RemoveDuplicates"
- name: "RemovePodsViolatingInterPodAntiAffinity"
- name: "LowNodeUtilization"
args:
thresholds:
"cpu": 55
"memory": 55
"pods": 2
targetThresholds:
"cpu": 60
"memory": 60
"pods": 3
- name: "RemovePodsHavingTooManyRestarts"
args:
podRestartThreshold: 100
includingInitContainers: true
plugins:
deschedule:
enabled:
- "RemovePodsViolatingInterPodAntiAffinity"
- "RemovePodsHavingTooManyRestarts"
balance:
enabled:
- "RemoveDuplicates"
- "LowNodeUtilization"

View File

@@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: redis - name: redis
image: bitnami/redis:6.2.16 image: bitnami/valkey:8.0.2
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
resources: resources:
requests: requests:
@@ -27,7 +27,7 @@ spec:
ports: ports:
- containerPort: 6379 - containerPort: 6379
env: env:
- name: REDIS_PASSWORD - name: VALKEY_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: redis-secret name: redis-secret