From dd94f2ed931722d986419663eb791e1af7288ba2 Mon Sep 17 00:00:00 2001 From: Amir Alavi Date: Fri, 29 Mar 2024 16:29:32 -0400 Subject: [PATCH] use v1alpha2 api for helm chart default values (#1139) --- charts/descheduler/values.yaml | 81 ++++++++++++++++++---------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index 46b8d13129..e6f2a3e6f0 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -79,14 +79,12 @@ cmdOptions: v: 3 # Recommended to use the latest Policy API version supported by the Descheduler app version -deschedulerPolicyAPIVersion: "descheduler/v1alpha1" +deschedulerPolicyAPIVersion: "descheduler/v1alpha2" deschedulerPolicy: # nodeSelector: "key1=value1,key2=value2" # maxNoOfPodsToEvictPerNode: 10 # maxNoOfPodsToEvictPerNamespace: 10 - # ignorePvcPods: true - # evictLocalStoragePods: true # tracing: # collectorEndpoint: otel-collector.observability.svc.cluster.local:4317 # transportCert: "" @@ -94,40 +92,49 @@ deschedulerPolicy: # serviceNamespace: "" # sampleRate: 1.0 # fallbackToNoOpProviderOnError: true - strategies: - RemoveDuplicates: - enabled: true - RemovePodsHavingTooManyRestarts: - enabled: true - params: - podsHavingTooManyRestarts: - podRestartThreshold: 100 - includingInitContainers: true - RemovePodsViolatingNodeTaints: - enabled: true - RemovePodsViolatingNodeAffinity: - enabled: true - params: - nodeAffinityType: - - requiredDuringSchedulingIgnoredDuringExecution - RemovePodsViolatingInterPodAntiAffinity: - enabled: true - RemovePodsViolatingTopologySpreadConstraint: - enabled: true - params: - includeSoftConstraints: false - LowNodeUtilization: - enabled: true - params: - nodeResourceUtilizationThresholds: - thresholds: - cpu: 20 - memory: 20 - pods: 20 - targetThresholds: - cpu: 50 - memory: 50 - pods: 50 + profiles: + - name: default + pluginConfig: + - name: DefaultEvictor + args: + ignorePvcPods: true + evictLocalStoragePods: true + - name: RemoveDuplicates + - name: RemovePodsHavingTooManyRestarts + args: + podRestartThreshold: 100 + includingInitContainers: true + - name: RemovePodsViolatingNodeTaints + args: + nodeAffinityType: + - requiredDuringSchedulingIgnoredDuringExecution + - name: RemovePodsViolatingInterPodAntiAffinity + - name: RemovePodsViolatingTopologySpreadConstraint + args: + includeSoftConstraints: false + - name: LowNodeUtilization + args: + thresholds: + cpu: 20 + memory: 20 + pods: 20 + targetThresholds: + cpu: 50 + memory: 50 + pods: 50 + plugins: + balance: + enabled: + - RemoveDuplicates + - RemovePodsViolatingNodeAffinity + - RemovePodsViolatingTopologySpreadConstraint + - LowNodeUtilization + deschedule: + enabled: + - RemovePodsHavingTooManyRestarts + - RemovePodsViolatingNodeTaints + - RemovePodsViolatingNodeAffinity + - RemovePodsViolatingInterPodAntiAffinity priorityClassName: system-cluster-critical