Skip to content

Commit

Permalink
Merge pull request #923 from yuvipanda/scheduler-name-fix
Browse files Browse the repository at this point in the history
Fix running multiple hubs in same cluster
  • Loading branch information
consideRatio authored Sep 11, 2018
2 parents 7174419 + c3ea854 commit 4e57e2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jupyterhub/templates/hub/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ data:
{{- end }}

{{- if .Values.scheduling.userScheduler.enabled }}
singleuser.scheduler-name: "user-scheduler"
singleuser.scheduler-name: "{{ .Release.Name }}-user-scheduler"
{{- end }}

{{- /* KubeSpawner */}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
image: {{ include "jupyterhub.scheduler.image" . }}
command:
- /usr/local/bin/kube-scheduler
- --scheduler-name=user-scheduler
- --scheduler-name={{ .Release.Name }}-user-scheduler
- --policy-configmap=user-scheduler
- --policy-configmap-namespace={{ .Release.Namespace }}
- --lock-object-name=user-scheduler
Expand Down
8 changes: 4 additions & 4 deletions jupyterhub/templates/scheduling/user-scheduler/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: user-scheduler-base
name: {{ .Release.Name }}-user-scheduler-base
labels:
{{- $_ := merge (dict "componentSuffix" "-base") . }}
{{- include "jupyterhub.labels" $_ | nindent 4 }}
Expand All @@ -26,7 +26,7 @@ roleRef:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: user-scheduler-complementary
name: {{ .Release.Name }}-user-scheduler-complementary
labels:
{{- $_ := merge (dict "componentSuffix" "-complementary") . }}
{{- include "jupyterhub.labels" $_ | nindent 4 }}
Expand All @@ -44,7 +44,7 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: user-scheduler-complementary
name: {{ .Release.Name }}-user-scheduler-complementary
labels:
{{- $_ := merge (dict "componentSuffix" "-complementary") . }}
{{- include "jupyterhub.labels" $_ | nindent 4 }}
Expand All @@ -54,7 +54,7 @@ subjects:
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: user-scheduler-complementary
name: {{ .Release.Name }}-user-scheduler-complementary
apiGroup: rbac.authorization.k8s.io
{{- end }}
{{- end }}

0 comments on commit 4e57e2f

Please sign in to comment.