Skip to content

Add scheduling op to helm chart #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/install-envtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ version=$(cat ${SCRIPT_ROOT}/go.mod | grep 'k8s.io/kubernetes' | grep -v '=>' |

GOPATH=$(go env GOPATH)
TEMP_DIR=${TMPDIR-/tmp}
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.15
"${GOPATH}"/bin/setup-envtest use -p env "${version}" > "${TEMP_DIR}/setup-envtest"

6 changes: 6 additions & 0 deletions manifests/install/charts/as-a-second-scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ The following table lists the configurable parameters of the as-a-second-schedul
| `scheduler.image` | Scheduler image | `registry.k8s.io/scheduler-plugins/kube-scheduler:v0.27.8` |
| `scheduler.leaderElect` | Scheduler leaderElection | `false` |
| `scheduler.replicaCount` | Scheduler replicaCount | `1` |
| `scheduler.nodeSelector` | Scheduler nodeSelector | `{}` |
| `scheduler.affinity` | Scheduler affinity | `{}` |
| `scheduler.tolerations` | Scheduler tolerations | `[]` |
| `controller.name` | Controller name | `scheduler-plugins-controller` |
| `controller.image` | Controller image | `registry.k8s.io/scheduler-plugins/controller:v0.27.8` |
| `controller.replicaCount` | Controller replicaCount | `1` |
| `controller.nodeSelector` | Controller nodeSelector | `{}` |
| `controller.affinity` | Controller affinity | `{}` |
| `controller.tolerations` | Controller tolerations | `[]` |
| `plugins.enabled` | Plugins enabled by default | `["Coscheduling","CapacityScheduling","NodeResourceTopologyMatch", "NodeResourcesAllocatable"]` |
| `plugins.disabled` | Plugins disabled by default | `["PrioritySort"]` |
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ spec:
- name: scheduler-plugins-controller
image: {{ .Values.controller.image }}
imagePullPolicy: IfNotPresent
{{- with .Values.controller.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8}}
{{- end }}
{{- with .Values.controller.affinity }}
affinity: {{- toYaml . | nindent 8}}
{{- end }}
{{- with .Values.controller.tolerations }}
tolerations: {{- toYaml . | nindent 8}}
{{- end }}

---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -72,3 +82,13 @@ spec:
- name: scheduler-config
configMap:
name: scheduler-config
{{- with .Values.scheduler.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8}}
{{- end }}
{{- with .Values.scheduler.affinity }}
affinity: {{- toYaml . | nindent 8}}
{{- end }}
{{- with .Values.scheduler.tolerations }}
tolerations: {{- toYaml . | nindent 8}}
{{- end }}

6 changes: 6 additions & 0 deletions manifests/install/charts/as-a-second-scheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ scheduler:
image: registry.k8s.io/scheduler-plugins/kube-scheduler:v0.27.8
replicaCount: 1
leaderElect: false
nodeSelector: {}
affinity: {}
tolerations: []

controller:
name: scheduler-plugins-controller
image: registry.k8s.io/scheduler-plugins/controller:v0.27.8
replicaCount: 1
nodeSelector: {}
affinity: {}
tolerations: []

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