Skip to content

Commit e21fb57

Browse files
committed
Add tolerations to binderhub
1 parent 3de27f2 commit e21fb57

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

helm-chart/binderhub/schema.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ required:
2020
- resources
2121
- rbac
2222
- nodeSelector
23+
- tolerations
2324
- image
2425
- registry
2526
- service
@@ -107,6 +108,14 @@ properties:
107108
documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
108109
for more details.
109110
111+
tolerations: &tolerations-spec
112+
type: array
113+
description: |
114+
Tolerations allow a pod to be scheduled on nodes with taints.
115+
See the
116+
[Kubernetes docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)
117+
for more info.
118+
110119
image: &image-spec
111120
type: object
112121
additionalProperties: false

helm-chart/binderhub/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ spec:
4141
{{- . | toYaml | nindent 8 }}
4242
{{- end }}
4343
nodeSelector: {{ .Values.nodeSelector | toJson }}
44+
{{- with .Values.tolerations }}
45+
tolerations:
46+
{{- . | toYaml | nindent 8 }}
47+
{{- end }}
4448
{{- if .Values.rbac.enabled }}
4549
serviceAccountName: binderhub
4650
{{- end }}

helm-chart/binderhub/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rbac:
1414
enabled: true
1515

1616
nodeSelector: {}
17+
tolerations: []
1718

1819
image:
1920
name: jupyterhub/k8s-binderhub

0 commit comments

Comments
 (0)