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: