From 305b3b671e3fd55df0ccbc44cac50f8a6f6c2374 Mon Sep 17 00:00:00 2001 From: Joji Augustine Date: Fri, 11 Apr 2025 16:08:22 +0200 Subject: [PATCH] add support to enable scheduler estimator in helm chart Signed-off-by: Joji Augustine set enabled scheduler estimator arg to true if true in values Co-authored-by: zhzhuang-zju Signed-off-by: Joji Augustine Signed-off-by: Joji Augustine --- charts/karmada/README.md | 1 + charts/karmada/templates/karmada-scheduler.yaml | 3 +++ charts/karmada/values.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/charts/karmada/README.md b/charts/karmada/README.md index 1fe78d1ede18..f2d093f74dcc 100644 --- a/charts/karmada/README.md +++ b/charts/karmada/README.md @@ -272,6 +272,7 @@ helm install karmada-scheduler-estimator -n karmada-system ./charts/karmada | `scheduler.affinity` | Affinity of the scheduler | `{}` | | `scheduler.tolerations` | Tolerations of the scheduler | `[]` | | `scheduler.strategy` | Strategy of the scheduler | `{"type": "RollingUpdate", "rollingUpdate": {"maxUnavailable": "0", "maxSurge": "50%"} }` | +| `scheduler.enableSchedulerEstimator` | Enable calling cluster scheduler estimator for adjusting replicas | `false` | | `webhook.labels` | Labels of the webhook deployment | `{"app": "karmada-webhook"}` | | `webhook.replicaCount` | Target replicas of the webhook | `1` | | `webhook.podLabels` | Labels of the webhook pods | `{}` | diff --git a/charts/karmada/templates/karmada-scheduler.yaml b/charts/karmada/templates/karmada-scheduler.yaml index 34a4e78f797d..9e08c2f1bf04 100644 --- a/charts/karmada/templates/karmada-scheduler.yaml +++ b/charts/karmada/templates/karmada-scheduler.yaml @@ -56,6 +56,9 @@ spec: - --scheduler-estimator-ca-file=/etc/karmada/pki/server-ca.crt - --scheduler-estimator-cert-file=/etc/karmada/pki/karmada.crt - --scheduler-estimator-key-file=/etc/karmada/pki/karmada.key + {{- if .Values.scheduler.enableSchedulerEstimator }} + - --enable-scheduler-estimator=true + {{- end }} livenessProbe: httpGet: path: /healthz diff --git a/charts/karmada/values.yaml b/charts/karmada/values.yaml index 891fd9d73e06..e4dd674f823d 100644 --- a/charts/karmada/values.yaml +++ b/charts/karmada/values.yaml @@ -234,6 +234,8 @@ scheduler: podDisruptionBudget: *podDisruptionBudget ## @param scheduler.priorityClassName the priority class name for the karmada-scheduler priorityClassName: "system-node-critical" + ## @param scheduler.enableSchedulerEstimator enable scheduler estimator + enableSchedulerEstimator: false ## webhook config webhook: