-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathdask-jupyter-deployment.yaml
More file actions
96 lines (96 loc) · 3.04 KB
/
dask-jupyter-deployment.yaml
File metadata and controls
96 lines (96 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{{- if .Values.jupyter.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "dask.fullname" . }}-jupyter
labels:
app: {{ template "dask.name" . }}
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: {{ template "dask.chart" . }}
component: jupyter
spec:
replicas: 1
selector:
matchLabels:
app: {{ template "dask.name" . }}
release: {{ .Release.Name | quote }}
component: jupyter
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: {{ template "dask.name" . }}
release: {{ .Release.Name | quote }}
component: jupyter
spec:
{{- with .Values.jupyter.image.pullSecrets }}
imagePullSecrets:
{{- . | toYaml | nindent 8 }}
{{- end }}
containers:
- name: {{ template "dask.fullname" . }}-jupyter
image: "{{ .Values.jupyter.image.repository }}:{{ .Values.jupyter.image.tag }}"
{{- with .Values.jupyter.image.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
{{- with .Values.jupyter.command }}
command:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- with .Values.jupyter.args }}
args:
{{- . | toYaml | nindent 12 }}
{{- end }}
ports:
- containerPort: 8888
resources:
{{- toYaml .Values.jupyter.resources | nindent 12 }}
volumeMounts:
- name: config-volume
mountPath: /usr/local/etc/jupyter
{{- with .Values.jupyter.mounts.volumeMounts }}
{{- . | toYaml | nindent 12 }}
{{- end }}
env:
- name: DASK_SCHEDULER_ADDRESS
value: {{ template "dask.fullname" . }}-scheduler:{{ .Values.scheduler.servicePort }}
{{- with .Values.jupyter.env }}
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- with .Values.jupyter.livenessProbe}}
livenessProbe:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- with .Values.jupyter.readinessProbe }}
readinessProbe:
{{- . | toYaml | nindent 12 }}
{{- end }}
volumes:
{{- with .Values.jupyter.mounts.volumes }}
{{- . | toYaml | nindent 8}}
{{- end }}
- name: config-volume
configMap:
name: {{ template "dask.fullname" . }}-jupyter-config
{{- with .Values.jupyter.nodeSelector }}
nodeSelector:
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.jupyter.affinity }}
affinity:
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.jupyter.securityContext }}
securityContext:
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.jupyter.tolerations }}
tolerations:
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.jupyter.serviceAccountName }}
serviceAccountName: {{ . | quote }}
{{- end }}
{{- end }}