2023-09-25 14:28:39 +00:00
|
|
|
{{- if .Values.scheduling.userScheduler.enabled -}}
|
|
|
|
kind: ConfigMap
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: {{ include "jupyterhub.user-scheduler-deploy.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "jupyterhub.labels" . | nindent 4 }}
|
|
|
|
data:
|
|
|
|
{{- /*
|
|
|
|
This is configuration of a k8s official kube-scheduler binary running in the
|
|
|
|
user-scheduler.
|
|
|
|
|
|
|
|
ref: https://kubernetes.io/docs/reference/scheduling/config/
|
|
|
|
ref: https://kubernetes.io/docs/reference/config-api/kube-scheduler-config.v1/
|
|
|
|
*/}}
|
|
|
|
config.yaml: |
|
|
|
|
apiVersion: kubescheduler.config.k8s.io/v1
|
|
|
|
kind: KubeSchedulerConfiguration
|
|
|
|
leaderElection:
|
2024-11-11 14:12:48 +00:00
|
|
|
resourceLock: leases
|
2023-09-25 14:28:39 +00:00
|
|
|
resourceName: {{ include "jupyterhub.user-scheduler-lock.fullname" . }}
|
|
|
|
resourceNamespace: "{{ .Release.Namespace }}"
|
|
|
|
profiles:
|
|
|
|
- schedulerName: {{ include "jupyterhub.user-scheduler.fullname" . }}
|
|
|
|
{{- with .Values.scheduling.userScheduler.plugins }}
|
|
|
|
plugins:
|
|
|
|
{{- . | toYaml | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.scheduling.userScheduler.pluginConfig }}
|
|
|
|
pluginConfig:
|
|
|
|
{{- . | toYaml | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|