examples/notebooks/docker/jupyter.yml
raw| 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: jupyter |
| 5 | labels: |
| 6 | app: jupyter |
| 7 | spec: |
| 8 | ports: |
| 9 | - port: 80 |
| 10 | name: http |
| 11 | targetPort: 8888 |
| 12 | selector: |
| 13 | app: jupyter |
| 14 | type: LoadBalancer |
| 15 | --- |
| 16 | apiVersion: v1 |
| 17 | kind: Pod |
| 18 | metadata: |
| 19 | name: jupyter |
| 20 | labels: |
| 21 | app: jupyter |
| 22 | spec: |
| 23 | initContainers: |
| 24 | - name: git-clone |
| 25 | image: alpine/git |
| 26 | args: |
| 27 | - clone |
| 28 | - --single-branch |
| 29 | - -- |
| 30 | - https://github.com/kubernetes-client/python.git |
| 31 | - /data |
| 32 | volumeMounts: |
| 33 | - mountPath: /data |
| 34 | name: notebook-volume |
| 35 | containers: |
| 36 | - name: jupyter |
| 37 | image: skippbox/jupyter:0.0.3 |
| 38 | ports: |
| 39 | - containerPort: 8888 |
| 40 | protocol: TCP |
| 41 | name: http |
| 42 | volumeMounts: |
| 43 | - mountPath: /root |
| 44 | name: notebook-volume |
| 45 | volumes: |
| 46 | - name: notebook-volume |
| 47 | emptyDir: {} |