diff --git a/charts/descheduler/README.md b/charts/descheduler/README.md index 56575940d..7df42c0c8 100644 --- a/charts/descheduler/README.md +++ b/charts/descheduler/README.md @@ -56,5 +56,7 @@ The following table lists the configurable parameters of the _descheduler_ chart | `priorityClassName` | The name of the priority class to add to pods | `system-cluster-critical` | | `rbac.create` | If `true`, create & use RBAC resources | `true` | | `podSecurityPolicy.create` | If `true`, create PodSecurityPolicy | `true` | +| `resources.cpuRequest` | Descheduler container CPU request | `500m` | +| `resources.memoryRequest` | Descheduler container memory request | `256Mi` | | `serviceAccount.create` | If `true`, create a service account for the cron job | `true` | | `serviceAccount.name` | The name of the service account to use, if not set and create is true a name is generated using the fullname template | `nil` | diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index 3bdb9be5d..6b8bbec21 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -44,6 +44,8 @@ spec: - {{ $value | quote }} {{- end }} {{- end }} + resources: + {{- toYaml .Values.resources | nindent 16 }} volumeMounts: - mountPath: /policy-dir name: policy-volume diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index 28d7c9af0..a7056b4bd 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -8,6 +8,14 @@ image: tag: "" pullPolicy: IfNotPresent +resources: + requests: + cpu: 500m + memory: 256Mi + # limits: + # cpu: 100m + # memory: 128Mi + nameOverride: "" fullnameOverride: ""