-
Notifications
You must be signed in to change notification settings - Fork 2
/
jupyter-base.yaml
62 lines (62 loc) · 1.43 KB
/
jupyter-base.yaml
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
apiVersion: v1
kind: Service
metadata:
name: jupyter-base
labels:
app: jupyter-base
group: web
tier: frontend
spec:
type: LoadBalancer
ports:
- port: 8888
nodePort: 32188
protocol: TCP
selector:
app: jupyter-base
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jupyter-base
spec:
replicas: 1
selector:
matchLabels:
app: jupyter-base
template:
metadata:
labels:
app: jupyter-base
group: web
tier: frontend
spec:
# auf Master starten
nodeSelector:
node-role.kubernetes.io/master: ""
containers:
- name: jupyter-base
image: registry.gitlab.com/mc-b/misegr/base-notebook
imagePullPolicy: IfNotPresent
command: [ "start-notebook.sh", "--NotebookApp.token=''" ]
ports:
- containerPort: 8888
name: jupyter-base
# Volumes im Container
volumeMounts:
- mountPath: "/home/jovyan/work"
subPath: jupyter
name: "jupyter-data"
- mountPath: "/home/jovyan/.kube"
name: "kube"
env:
- name: DOCKER_HOST
value: "tcp://dind:2375"
# Volumes in Host
volumes:
- name: "jupyter-data"
persistentVolumeClaim:
claimName: data-claim
- name: "kube"
hostPath:
path: "/home/vagrant/.kube"