-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathdeploy-hub.yaml
More file actions
67 lines (67 loc) · 1.63 KB
/
deploy-hub.yaml
File metadata and controls
67 lines (67 loc) · 1.63 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: hub
labels:
app: jupyterhub
component: hub
spec:
selector:
matchLabels:
app: jupyterhub
component: hub
template:
metadata:
labels:
app: jupyterhub
component: hub
spec:
containers:
- name: hub-container
image: jupyterhub/k8s-hub:v0.6
command: [ "jupyterhub", "--config", "/srv/jupyterhub_config.py", "--upgrade-db" ]
env:
- name: SINGLEUSER_IMAGE
value: jupyterhub/k8s-singleuser-sample:v0.6
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: CONFIGPROXY_AUTH_TOKEN
valueFrom:
secretKeyRef:
key: proxy.token
name: hub-secret
ports:
- name: hub
containerPort: 8081
protocol: TCP
resources:
requests:
cpu: 200m
memory: 100M
volumeMounts:
- name: config
mountPath: /etc/jupyterhub/config/
- name: secret
mountPath: /etc/jupyterhub/secret/
- name: hub-db-dir
mountPath: /srv/jupyterhub
securityContext:
fsGroup: 1000
runAsUser: 1000
serviceAccount: hub
serviceAccountName: hub
volumes:
- name: config
configMap:
name: hub-config
defaultMode: 420
- name: secret
secret:
secretName: hub-secret
defaultMode: 420
- name: hub-db-dir
persistentVolumeClaim:
claimName: hub-db-dir