提交 98e37fb7 创建 作者: 宋海霞's avatar 宋海霞

更新 minikube中安裝jupyterhub.txt

上级 c171c9b1
1. 将以下四个镜像使用docker pull命令拉取到本地 1. 将以下四个镜像使用docker pull命令拉取到本地
...@@ -39,8 +39,21 @@ c.KubeSpawner.storage_capacity = '200Mi'# Add volumes to singleuser podsc.KubeSp ...@@ -39,8 +39,21 @@ c.KubeSpawner.storage_capacity = '200Mi'# Add volumes to singleuser podsc.KubeSp
使用kubectl get pv查看pv和kubectl get pvc查看pvc 使用kubectl get pv查看pv和kubectl get pvc查看pvc
3. 部署 3. 部署
kubectl create -f proxy/service.yaml
kubectl create -f jupyter-hub/service.yaml
kubectl create -f jupyter-hub/rbac.yaml
kubectl create -f proxy/deployment.yaml
kubectl create -f jupyter-hub/deployment.yaml
4. 查看部署是否成功,运行kubectl get pods命令,显示以下内容 4. 查看部署是否成功,运行kubectl get pods命令,显示以下内容
hub is Running hub is Running
proxy is Running proxy is Running
5. 使用webUI进行访问。 5. 使用webUI进行访问。
5. 取消部署 6. 取消部署
kubectl delete -f proxy/service.yaml
kubectl delete -f jupyter-hub/service.yaml
kubectl delete -f jupyter-hub/rbac.yaml
kubectl delete -f proxy/deployment.yaml
kubectl delete -f jupyter-hub/deployment.yaml
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论