mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 06:29:29 +01:00
feat: Add support for topologySpreadConstraints
This commit is contained in:
@@ -84,6 +84,7 @@ The following table lists the configurable parameters of the _descheduler_ chart
|
|||||||
| `serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples after scraping, but before ingestion | `[]` |
|
| `serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples after scraping, but before ingestion | `[]` |
|
||||||
| `serviceMonitor.relabelings` | RelabelConfigs to apply to samples before scraping | `[]` |
|
| `serviceMonitor.relabelings` | RelabelConfigs to apply to samples before scraping | `[]` |
|
||||||
| `affinity` | Node affinity to run the descheduler cronjob/deployment on specific nodes | `nil` |
|
| `affinity` | Node affinity to run the descheduler cronjob/deployment on specific nodes | `nil` |
|
||||||
|
| `topologySpreadConstraints` | Topology Spread Constraints to spread the descheduler cronjob/deployment across the cluster | `[]` |
|
||||||
| `tolerations` | tolerations to run the descheduler cronjob/deployment on specific nodes | `nil` |
|
| `tolerations` | tolerations to run the descheduler cronjob/deployment on specific nodes | `nil` |
|
||||||
| `suspend` | Set spec.suspend in descheduler cronjob | `false` |
|
| `suspend` | Set spec.suspend in descheduler cronjob | `false` |
|
||||||
| `commonLabels` | Labels to apply to all resources | `{}` |
|
| `commonLabels` | Labels to apply to all resources | `{}` |
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.topologySpreadConstraints }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.dnsConfig }}
|
{{- if .Values.dnsConfig }}
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
{{- .Values.dnsConfig | toYaml | nindent 12 }}
|
{{- .Values.dnsConfig | toYaml | nindent 12 }}
|
||||||
|
|||||||
@@ -80,6 +80,10 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.topologySpreadConstraints }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|||||||
@@ -149,6 +149,13 @@ affinity: {}
|
|||||||
# values:
|
# values:
|
||||||
# - descheduler
|
# - descheduler
|
||||||
# topologyKey: "kubernetes.io/hostname"
|
# topologyKey: "kubernetes.io/hostname"
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
# - maxSkew: 1
|
||||||
|
# topologyKey: kubernetes.io/hostname
|
||||||
|
# whenUnsatisfiable: DoNotSchedule
|
||||||
|
# labelSelector:
|
||||||
|
# matchLabels:
|
||||||
|
# app.kubernetes.io/name: descheduler
|
||||||
tolerations: []
|
tolerations: []
|
||||||
# - key: 'management'
|
# - key: 'management'
|
||||||
# operator: 'Equal'
|
# operator: 'Equal'
|
||||||
|
|||||||
Reference in New Issue
Block a user