k8s-manifests/jupyter/base/charts/jupyterhub/templates/scheduling/user-scheduler/configmap.yaml

34 lines
1.1 KiB
YAML
Raw Normal View History

{{- 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
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 }}