Merge pull request #1749 from RonMallory/fix/jupyter-yaml
fix: remove depriciated gitrepo volume type
This commit is contained in:
commit
74952467e7
@ -1,5 +1,4 @@
|
||||
Jupyter Notebooks for Kubernetes
|
||||
================================
|
||||
# Jupyter Notebooks for Kubernetes
|
||||
|
||||
This is a set of Jupyter notebooks to learn the Kubernetes API in Python.
|
||||
|
||||
@ -11,9 +10,20 @@ kubectl create -f docker/jupyter.yml
|
||||
|
||||
Open your browser on the jupyter service and go through the notebooks.
|
||||
|
||||
If you are using minikube, you can run this command to see jupyter service in your browser:
|
||||
If you are using minikube:
|
||||
|
||||
```
|
||||
# You can run this command to see jupyter service in your browser:
|
||||
|
||||
minikube service jupyter
|
||||
|
||||
# You can run this command to get the url in console
|
||||
minikube service --url jupyter
|
||||
|
||||
```
|
||||
|
||||
Clean up your deployment.
|
||||
|
||||
```
|
||||
kubectl delete -f docker/jupyter.yml
|
||||
```
|
||||
|
||||
@ -20,6 +20,18 @@ metadata:
|
||||
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
|
||||
@ -32,5 +44,4 @@ spec:
|
||||
name: notebook-volume
|
||||
volumes:
|
||||
- name: notebook-volume
|
||||
gitRepo:
|
||||
repository: "https://github.com/kubernetes-client/python.git"
|
||||
emptyDir: {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user