Skip to content

Commit 474b8cb

Browse files
committed
Add scheduling op to helm chart
1 parent 93c518b commit 474b8cb

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

manifests/install/charts/as-a-second-scheduler/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ The following table lists the configurable parameters of the as-a-second-schedul
4848
| `scheduler.image` | Scheduler image | `registry.k8s.io/scheduler-plugins/kube-scheduler:v0.27.8` |
4949
| `scheduler.leaderElect` | Scheduler leaderElection | `false` |
5050
| `scheduler.replicaCount` | Scheduler replicaCount | `1` |
51+
| `scheduler.nodeSelector` | Scheduler nodeSelector | `{}` |
52+
| `scheduler.affinity` | Scheduler affinity | `{}` |
53+
| `scheduler.tolerations` | Scheduler tolerations | `[]` |
5154
| `controller.name` | Controller name | `scheduler-plugins-controller` |
5255
| `controller.image` | Controller image | `registry.k8s.io/scheduler-plugins/controller:v0.27.8` |
5356
| `controller.replicaCount` | Controller replicaCount | `1` |
57+
| `controller.nodeSelector` | Controller nodeSelector | `{}` |
58+
| `controller.affinity` | Controller affinity | `{}` |
59+
| `controller.tolerations` | Controller tolerations | `[]` |
5460
| `plugins.enabled` | Plugins enabled by default | `["Coscheduling","CapacityScheduling","NodeResourceTopologyMatch", "NodeResourcesAllocatable"]` |
5561
| `plugins.disabled` | Plugins disabled by default | `["PrioritySort"]` |

manifests/install/charts/as-a-second-scheduler/templates/deployment.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ spec:
2020
- name: scheduler-plugins-controller
2121
image: {{ .Values.controller.image }}
2222
imagePullPolicy: IfNotPresent
23+
{{- with .Values.controller.nodeSelector }}
24+
nodeSelector: {{- toYaml . | nindent 8}}
25+
{{- end }}
26+
{{- with .Values.controller.affinity }}
27+
affinity: {{- toYaml . | nindent 8}}
28+
{{- end }}
29+
{{- with .Values.controller.tolerations }}
30+
tolerations: {{- toYaml . | nindent 8}}
31+
{{- end }}
32+
2333
---
2434
apiVersion: apps/v1
2535
kind: Deployment
@@ -72,3 +82,12 @@ spec:
7282
- name: scheduler-config
7383
configMap:
7484
name: scheduler-config
85+
{{- with .Values.scheduler.nodeSelector }}
86+
nodeSelector: {{- toYaml . | nindent 8}}
87+
{{- end }}
88+
{{- with .Values.scheduler.affinity }}
89+
affinity: {{- toYaml . | nindent 8}}
90+
{{- end }}
91+
{{- with .Values.scheduler.tolerations }}
92+
tolerations: {{- toYaml . | nindent 8}}
93+
{{- end }}

manifests/install/charts/as-a-second-scheduler/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ scheduler:
77
image: registry.k8s.io/scheduler-plugins/kube-scheduler:v0.27.8
88
replicaCount: 1
99
leaderElect: false
10+
nodeSelector: {}
11+
affinity: {}
12+
tolerations: []
1013

1114
controller:
1215
name: scheduler-plugins-controller
1316
image: registry.k8s.io/scheduler-plugins/controller:v0.27.8
1417
replicaCount: 1
18+
nodeSelector: {}
19+
affinity: {}
20+
tolerations: []
1521

1622
# LoadVariationRiskBalancing and TargetLoadPacking are not enabled by default
1723
# as they need extra RBAC privileges on metrics.k8s.io.

0 commit comments

Comments
 (0)