-
Notifications
You must be signed in to change notification settings - Fork 0
/
input.yaml
248 lines (247 loc) · 7.23 KB
/
input.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
apiVersion: v1
kind: PersistentVolume
metadata:
name: jupyter-SERVICE_NAME-pv
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /tmp/jupyter-SERVICE_NAME
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
<<<<<<< HEAD
name: jupyter-SERVICE_NAME-storage-jupyter-SERVICE_NAME-0
=======
name: jupyter-SERVICE_NAME-pvc
>>>>>>> 534104d1b41fe05439dbf4d8181c9228ad064c86
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: jupyter-SERVICE_NAME
namespace: sapujagad2
spec:
selector:
matchLabels:
app: jupyter-SERVICE_NAME
serviceName: jupyter-SERVICE_NAME
replicas: 1
template:
metadata:
labels:
app: jupyter-SERVICE_NAME
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
<<<<<<< HEAD
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k8s-worker3
=======
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k8s-worker3
>>>>>>> 534104d1b41fe05439dbf4d8181c9228ad064c86
containers:
- name: jupyter
image: adisurya1512/jupyterhub:test4
# command: ["jupyterhub"]
# args: ["--config", "/etc/jupyterhub/jupyterhub_config.py"]
command:
- "/bin/sh"
args:
- "-c"
- |
cp /etc/jupyterhub/jupyterhub_config.py jupyterhub_config.py &&
jupyterhub --config jupyterhub_config.py
envFrom:
- configMapRef:
name: aws-env-g45526fc96
- configMapRef:
name: hadoop-env-544cf4678g
- configMapRef:
name: hbase-env-ccmtmcf282
- configMapRef:
name: hive-env-kd6b4bmt54
- configMapRef:
name: ozone-env-2ghbdmg5kt
- configMapRef:
name: spark-env-c58k287t2g
- configMapRef:
name: tez-env-5mm4ct4mb5
- configMapRef:
name: trino-env-m8kk8bbktg
- configMapRef:
name: zookeeper-env-k4htkf44kk
env:
- name: HADOOP_USER_NAME
value: SERVICE_NAME
- name: HADOOP_CLASSPATH
value: $(TEZ_CONF_DIR):$(TEZ_JARS)/*:$(TEZ_JARS)/lib/*
- name: JAVA_HOME
value: /usr/local/openjdk-8/
- name: JUPYTERHUB_ADMIN
value: admin
- name: PATH
value: >-
$(TRINO_HOME)/trino-cli/bin:$(HBASE_HOME)/bin:$(HIVE_HOME)/bin:$(OZONE_HOME)/bin:$(SPARK_HOME)/bin:$(HADOOP_HOME)/bin:/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
volumeMounts:
- mountPath: /etc/hadoop/conf
name: hadoop-conf
- mountPath: /etc/hbase/conf
name: hbase-conf
- mountPath: /etc/hive/conf
name: hive-conf
- mountPath: /etc/ozone/conf
name: ozone-conf
- mountPath: /etc/spark/conf
name: spark-conf
- mountPath: /etc/tez/conf
name: tez-conf
- mountPath: /etc/trino/conf/cli.properties
name: trino-conf
subPath: cli.properties
- mountPath: /etc/zookeeper/conf
name: zookeeper-conf
- mountPath: /opt/hadoop
name: package-hadoop
- mountPath: /opt/hbase
name: package-hbase-client
- mountPath: /opt/hive
name: package-hive
- mountPath: /opt/ozone
name: package-ozone
- mountPath: /opt/spark
name: package-spark
- mountPath: /opt/tez
name: package-tez
- mountPath: /opt/trino
name: package-trino
- mountPath: /data
name: package-jupyter
- mountPath: /etc/jupyterhub
name: jupyterhub-conf
- mountPath: /home/jupyter
name: storage-volume
workingDir: /home/zookage
dnsConfig:
nameservers:
- 1.1.1.1
- 8.8.8.8
dnsPolicy: None
terminationGracePeriodSeconds: 0
volumes:
- configMap:
defaultMode: 420
name: jupyterhub-conf-k88fm2gkmm
name: jupyterhub-conf
- configMap:
defaultMode: 420
name: hadoop-conf-4f942k92fc
name: hadoop-conf
- configMap:
defaultMode: 420
name: hbase-conf-2tcbdd6gb5
name: hbase-conf
- configMap:
defaultMode: 420
name: hive-conf-f46ccdg5d2
name: hive-conf
- configMap:
defaultMode: 420
name: ozone-conf-fmhfkb24c6
name: ozone-conf
- configMap:
defaultMode: 420
name: spark-conf-8447tfgmcf
name: spark-conf
- configMap:
defaultMode: 420
name: tez-conf-59kt2g4ff7
name: tez-conf
- configMap:
defaultMode: 420
name: trino-conf-kc8456thk2
name: trino-conf
- configMap:
defaultMode: 420
name: zookeeper-conf-kd8h25tc58
name: zookeeper-conf
- name: package-hadoop
persistentVolumeClaim:
claimName: package-hadoop
- name: package-hbase-client
persistentVolumeClaim:
claimName: package-hbase-client
- name: package-hive
persistentVolumeClaim:
claimName: package-hive
- name: package-ozone
persistentVolumeClaim:
claimName: package-ozone
- name: package-spark
persistentVolumeClaim:
claimName: package-spark
- name: package-tez
persistentVolumeClaim:
claimName: package-tez
- name: package-trino
persistentVolumeClaim:
claimName: package-trino
- name: package-jupyter
persistentVolumeClaim:
claimName: package-jupyter
- name: storage-volume
persistentVolumeClaim:
<<<<<<< HEAD
claimName: jupyter-SERVICE_NAME-storage-jupyter-SERVICE_NAME-0
volumeClaimTemplates:
- metadata:
name: jupyter-SERVICE_NAME-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
=======
claimName: jupyter-SERVICE_NAME-storage-jupyter-SERVICE_NAME-0
volumeClaimTemplates:
- metadata:
name: jupyter-SERVICE_NAME-storage
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
>>>>>>> 534104d1b41fe05439dbf4d8181c9228ad064c86
---
apiVersion: v1
kind: Service
metadata:
name: jupyter-SERVICE_NAME-nodeport
namespace: sapujagad2
spec:
selector:
app: jupyter-SERVICE_NAME
ports:
- protocol: TCP
port: 8000
targetPort: 8000
nodePort: SERVICE_PORT
type: NodePort