fix: remove depriciated gitrepo volume type

This commit is contained in:
Ron 2022-03-15 22:42:53 -07:00
parent 6c90fe3182
commit 10238161ca
2 changed files with 26 additions and 5 deletions

View File

@ -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
```

View File

@ -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: {}