forked from jupyter/nbviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnbviewer.yaml
102 lines (102 loc) · 1.95 KB
/
nbviewer.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
99
100
101
102
apiVersion: v1
kind: Service
metadata:
name: nbviewer
labels:
app: jupyter
spec:
ports:
- name: "8080"
port: 8080
targetPort: 8080
selector:
jupyter-service-name: nbviewer
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
jupyter-service-name: nbviewer
name: nbviewer
spec:
replicas: 1
selector:
matchLabels:
jupyter-service-name: nbviewer
strategy:
type: Recreate
template:
metadata:
labels:
jupyter-service-name: nbviewer
spec:
securityContext:
runAsUser: 1000
runAsGroup: 100
fsGroup: 100
fsGroupChangePolicy: Always
imagePullSecrets:
- name: regcred
containers:
- args:
env:
- name: GITHUB_OAUTH_KEY
value: "github_client_id"
- name: GITHUB_OAUTH_SECRET
value: "github_client_secret"
- name: MEMCACHIER_SERVERS
value: nbcache:11211
image: sciencedata/nbviewer_sciencedata:latest
imagePullPolicy: "Always"
name: nbviewer
securityContext:
capabilities:
add: ["SYS_CHROOT"]
ports:
- containerPort: 8080
protocol: TCP
restartPolicy: Always
nodeName: peon145
---
apiVersion: v1
kind: Service
metadata:
name: nbcache
labels:
app: memcached
spec:
ports:
- name: "11211"
port: 11211
targetPort: 11211
selector:
jupyter-service-name: nbcache
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
jupyter-service-name: nbcache
name: nbcache
spec:
replicas: 1
selector:
matchLabels:
jupyter-service-name: nbcache
template:
metadata:
labels:
jupyter-service-name: nbcache
spec:
containers:
- image: memcached
name: nbcache
ports:
- containerPort: 11211
protocol: TCP
restartPolicy: Always
nodeName: peon145