diff --git a/charts/descheduler/README.md b/charts/descheduler/README.md index 92b18a7c8..e4a8b1022 100644 --- a/charts/descheduler/README.md +++ b/charts/descheduler/README.md @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the _descheduler_ chart | `ttlSecondsAfterFinished` | If set, configure `ttlSecondsAfterFinished` for the _descheduler_ job | `nil` | | `deschedulingInterval` | If using kind:Deployment, sets time between consecutive descheduler executions. | `5m` | | `replicas` | The replica count for Deployment | `1` | +| `revisionHistoryLimit | The revision history limit for Deployment | `10` | | `leaderElection` | The options for high availability when running replicated components | _see values.yaml_ | | `podDisruptionBudget.enabled` | If `true` and `kind` is `Deployment`, create a PodDisruptionBudget for the descheduler | `false` | | `podDisruptionBudget.minAvailable` | Minimum descheduler pods that must stay available (mutually exclusive with `maxUnavailable`) | `1` | diff --git a/charts/descheduler/templates/deployment.yaml b/charts/descheduler/templates/deployment.yaml index 6d121d41c..e74ee4ac3 100644 --- a/charts/descheduler/templates/deployment.yaml +++ b/charts/descheduler/templates/deployment.yaml @@ -18,6 +18,7 @@ spec: {{- else }} replicas: 1 {{- end }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "descheduler.selectorLabels" . | nindent 6 }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index 37b5e3fb5..c13cb76f9 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -68,6 +68,8 @@ deschedulingInterval: 5m # only if that node is in the same zone as at least one already-running descheduler replicas: 1 +revisionHistoryLimit: 10 + # Specifies whether Leader Election resources should be created # Required when running as a Deployment # NOTE: Leader election can't be activated if DryRun enabled