Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions dask/templates/dask-jupyter-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ spec:
volumeMounts:
- name: config-volume
mountPath: /usr/local/etc/jupyter
{{- if .Values.worker.mounts.volumeMounts }}
{{- toYaml .Values.worker.mounts.volumeMounts | nindent 12 }}
{{- end }}
env:
- name: DASK_SCHEDULER_ADDRESS
value: {{ template "dask.fullname" . }}-scheduler:{{ .Values.scheduler.servicePort }}
{{- if .Values.jupyter.env }}
{{- toYaml .Values.jupyter.env | nindent 12 }}
{{- end }}
volumes:
{{- if .Values.jupyter.mounts.volumes }}
{{- toYaml .Values.worker.mounts.volumes | nindent 8}}
{{- end }}
- name: config-volume
configMap:
name: {{ template "dask.fullname" . }}-jupyter-config
Expand Down
9 changes: 9 additions & 0 deletions dask/templates/dask-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
spec:
imagePullSecrets:
{{- toYaml .Values.worker.image.pullSecrets | nindent 8 }}
{{- if .Values.worker.mounts.volumes }}
volumes:
{{- toYaml .Values.worker.mounts.volumes | nindent 8}}
{{- end }}
containers:
- name: {{ template "dask.fullname" . }}-worker
image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag }}"
Expand All @@ -50,6 +54,11 @@ spec:
{{- toYaml .Values.worker.resources | nindent 12 }}
env:
{{- toYaml .Values.worker.env | nindent 12 }}

{{- if .Values.worker.mounts.volumeMounts }}
volumeMounts:
{{- toYaml .Values.worker.mounts.volumeMounts | nindent 12 }}
{{- end }}
{{- with .Values.worker.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
15 changes: 15 additions & 0 deletions dask/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ worker:
# cpu: 1
# memory: 3G
# nvidia.com/gpu: 1
mounts: {}
Comment thread
jacobtomlinson marked this conversation as resolved.
Outdated
# volumes:
# - name: data
# emptyDir: {}
# volumeMounts:
# - name: data
# mountPath: /data
tolerations: [] # Tolerations.
affinity: {} # Container affinity.
nodeSelector: {} # Node Selector.
Expand All @@ -89,6 +96,7 @@ jupyter:
pullPolicy: IfNotPresent # Container image pull policy.
pullSecrets: # Container image [pull secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/).
# - name: regcred
#
replicas: 1 # Number of notebook servers.
serviceType: "ClusterIP" # Scheduler service type. Set to `LoadBalancer` to expose outside of your cluster.
# serviceType: "NodePort"
Expand Down Expand Up @@ -117,6 +125,13 @@ jupyter:
# requests:
# cpu: 2
# memory: 6G
mounts: {}
Comment thread
jacobtomlinson marked this conversation as resolved.
Outdated
# volumes:
# - name: data
# emptyDir: {}
# volumeMounts:
# - name: data
# mountPath: /data
tolerations: [] # Tolerations.
affinity: {} # Container affinity.
nodeSelector: {} # Node Selector.
Expand Down