@@ -9,21 +9,26 @@ metadata:
99spec :
1010 serviceAccountName : zeppelin-server
1111 volumes :
12- - name : zeppelin-server-notebook-volume
13- persistentVolumeClaim :
14- claimName : cuelake-notebook-efs-pvc
15- - name : zeppelin-server-conf
16- persistentVolumeClaim :
17- claimName : cuelake-conf-efs-pvc
18- - name : nginx-conf
19- configMap :
20- name : zeppelin-server-conf
21- items :
22- - key : nginx.conf
23- path : nginx.conf
12+ - name : shared-notebook
13+ emptyDir :
14+ - name : shared-conf
15+ emptyDir :
16+ initContainers :
17+ - name : init
18+ image : bitnami/kubectl
19+ command : ['sh', '-c']
20+ volumeMounts :
21+ - name : shared-notebook
22+ mountPath : /shared-notebook
23+ - name : shared-conf
24+ mountPath : /shared-conf
25+ args :
26+ - >-
27+ kubectl cp $(kubectl get pods | grep zeppelin-server | awk '{print $1}' ):/zeppelin/conf /shared-conf &&
28+ kubectl cp $(kubectl get pods | grep zeppelin-server | awk '{print $1}' ):/zeppelin/notebook /shared-notebook
2429 containers :
2530 - name : zeppelin-server
26- image : ' cuebook/zeppelin-server:0.9.0 '
31+ image : ' cuebook/zeppelin-server-lite :0.2 '
2732 command :
2833 - sh
2934 - ' -c'
5863 apiVersion : v1
5964 fieldPath : metadata.name
6065 volumeMounts :
61- - name : zeppelin-server- notebook-volume
66+ - name : shared- notebook
6267 mountPath : /zeppelin/notebook
63- - name : zeppelin-server -conf
68+ - name : shared -conf
6469 mountPath : /zeppelin/conf
6570 lifecycle :
6671 preStop :
7883 requests :
7984 memory : " 1024Mi"
8085 cpu : " 250m"
81- - name : zeppelin-server-gateway
82- image : ' nginx:1.14.0'
83- command :
84- - /bin/sh
85- - ' -c'
86- args :
87- - >-
88- cp -f /tmp/conf/nginx.conf /etc/nginx/nginx.conf; sed -i -e
89- "s/SERVICE_DOMAIN/$SERVICE_DOMAIN/g" /etc/nginx/nginx.conf; sed -i -e
90- "s/NAMESPACE/$(cat
91- /var/run/secrets/kubernetes.io/serviceaccount/namespace)/g"
92- /etc/nginx/nginx.conf; cat /etc/nginx/nginx.conf; /usr/sbin/nginx
93- env :
94- - name : SERVICE_DOMAIN
95- valueFrom :
96- configMapKeyRef :
97- name : zeppelin-server-conf-map
98- key : SERVICE_DOMAIN
99- volumeMounts :
100- - name : nginx-conf
101- mountPath : /tmp/conf
102- lifecycle :
103- preStop :
104- exec :
105- command :
106- - /usr/sbin/nginx
107- - ' -s'
108- - quit
109- terminationMessagePath : /dev/termination-log
110- terminationMessagePolicy : File
111- imagePullPolicy : IfNotPresent
112- - name : dnsmasq
113- image : ' janeczku/go-dnsmasq:release-1.0.5'
114- args :
115- - ' --listen'
116- - ' 127.0.0.1:53'
117- - ' --default-resolver'
118- - ' --append-search-domains'
119- - ' --hostsfile=/etc/hosts'
120- - ' --verbose'
121- terminationMessagePath : /dev/termination-log
122- terminationMessagePolicy : File
123- imagePullPolicy : IfNotPresent
0 commit comments