-
Notifications
You must be signed in to change notification settings - Fork 0
/
quick-jupyterhub-server.yaml
98 lines (90 loc) · 1.81 KB
/
quick-jupyterhub-server.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
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
97
98
apiVersion: v1
kind: Namespace
metadata:
name: jupyter-temp
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: high-priority-apps
namespace: jupyter-temp
value: 1000000
preemptionPolicy: Never
globalDefault: false
description: "Mission Critical apps."
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jupyter-temp-storage-pvc
namespace: jupyter-temp
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1000Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jupyter-temp
labels:
app: jupyter-temp
namespace: jupyter-temp
spec:
replicas: 1
selector:
matchLabels:
app: jupyter-temp
template:
metadata:
labels:
app: jupyter-temp
spec:
restartPolicy: Always
securityContext:
runAsUser: 1000
runAsGroup: 100
fsGroup: 100
volumes:
- name: home-storage
persistentVolumeClaim:
claimName: jupyter-temp-storage-pvc
priorityClassName: high-priority-apps
containers:
- name: jupyter
image: registry.lpp.polytechnique.fr/lpp/jupyter-notebok-python:hub-2.3.1
resources:
limits:
cpu: "44"
memory: "180Gi"
requests:
cpu: "44"
memory: "180Gi"
imagePullPolicy: Always
ports:
- containerPort: 8888
name: http
volumeMounts:
- mountPath: /home/jovyan/work
name: home-storage
---
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: jupyter-temp
name: jupyter-temp
namespace: jupyter-temp
spec:
selector:
app: jupyter-temp
type: NodePort
ports:
- port: 8888
name: http
targetPort: 8888
protocol: TCP
nodePort: 32767