File tree 2 files changed +26
-5
lines changed
2 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 1
- Jupyter Notebooks for Kubernetes
2
- ================================
1
+ # Jupyter Notebooks for Kubernetes
3
2
4
3
This is a set of Jupyter notebooks to learn the Kubernetes API in Python.
5
4
@@ -11,9 +10,20 @@ kubectl create -f docker/jupyter.yml
11
10
12
11
Open your browser on the jupyter service and go through the notebooks.
13
12
14
- If you are using minikube, you can run this command to see jupyter service in your browser :
13
+ If you are using minikube:
15
14
16
15
```
16
+ # You can run this command to see jupyter service in your browser:
17
+
17
18
minikube service jupyter
19
+
20
+ # You can run this command to get the url in console
21
+ minikube service --url jupyter
22
+
18
23
```
19
24
25
+ Clean up your deployment.
26
+
27
+ ```
28
+ kubectl delete -f docker/jupyter.yml
29
+ ```
Original file line number Diff line number Diff line change @@ -20,6 +20,18 @@ metadata:
20
20
labels :
21
21
app : jupyter
22
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
23
35
containers :
24
36
- name : jupyter
25
37
image : skippbox/jupyter:0.0.3
32
44
name : notebook-volume
33
45
volumes :
34
46
- name : notebook-volume
35
- gitRepo :
36
- repository : " https://github.com/kubernetes-client/python.git"
47
+ emptyDir : {}
You can’t perform that action at this time.
0 commit comments