diff --git a/template/descheduler/descheduler-policy.template.yaml b/template/descheduler/descheduler-policy.template.yaml new file mode 100644 index 0000000..6fbfb0f --- /dev/null +++ b/template/descheduler/descheduler-policy.template.yaml @@ -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" \ No newline at end of file diff --git a/template/redis/redis.yaml b/template/redis/redis.yaml index 0c3538a..e61ccec 100644 --- a/template/redis/redis.yaml +++ b/template/redis/redis.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: redis - image: bitnami/redis:6.2.16 + image: bitnami/valkey:8.0.2 imagePullPolicy: "IfNotPresent" resources: requests: @@ -27,7 +27,7 @@ spec: ports: - containerPort: 6379 env: - - name: REDIS_PASSWORD + - name: VALKEY_PASSWORD valueFrom: secretKeyRef: name: redis-secret