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
|
apiVersion: v1
kind: Service
metadata:
name: jupyter
labels:
app: jupyter
spec:
ports:
- port: 80
name: http
targetPort: 8888
selector:
app: jupyter
type: LoadBalancer
---
apiVersion: v1
kind: Pod
metadata:
name: jupyter
labels:
app: jupyter
spec:
initContainers:
- name: git-clone
image: alpine/git
args:
- clone
- --single-branch
- --
- https://github.com/kubernetes-client/python.git
- /data
volumeMounts:
- mountPath: /data
name: notebook-volume
containers:
- name: jupyter
image: skippbox/jupyter:0.0.3
ports:
- containerPort: 8888
protocol: TCP
name: http
volumeMounts:
- mountPath: /root
name: notebook-volume
volumes:
- name: notebook-volume
emptyDir: {}
|