Skip to Content
Kubernetes即学即用(第二版)
book

Kubernetes即学即用(第二版)

by Brendan Burns, Joe Beda, Kelsey Hightower
June 2021
Intermediate to advanced
300 pages
5h 4m
Chinese
China Electric Power Press Ltd.
Content preview from Kubernetes即学即用(第二版)
部署实际应用程序
241
你可以通过
watch
命令查看容器是否准备就绪(在
macOS
上,你需要先使用
brew install watch
安装此命令):
$
watch kubectl get pods --namespace jupyter
Jupyter
容器启动并开始运行后,你需要获取初始登录令牌。你可以通过容
器的日志找到令牌:
$
pod_name=$(kubectl get pods --namespace jupyter --no-headers | awk '{print $1}') \
kubectl logs --namespace jupyter ${pod_name}
接下来,复制令牌(令牌形如
/?token=0195713c8e65088650fdd8b599db377b7
ce6c9b10bd13766
)。
接下来,设置端口转发到
Jupyter
容器:
$
kubectl port-forward ${pod_name} 8888:8888
最后,你可以访问
http://localhost:8888/?token=<token>
,插入上一步从日志
复制的令牌。
到这一步,
Jupyter
仪表板应该就已经加载到浏览器中了。
Jupyter
项目的官网
https://jupyter.org/try
)提供了
Jupyter
的入门教程。
17.2 Parse
Parse
服务器是一个云
API
,专用于为移动应用程序提供易于使用的存储。它
提供了各种不同的客户端库,可以轻松地与
Android
iOS ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PyTorch深度学习

PyTorch深度学习

Posts & Telecom Press, Vishnu Subramanian
Python数据分析

Python数据分析

Posts & Telecom Press, Ivan Idris
Python贝叶斯分析(第2版)

Python贝叶斯分析(第2版)

Posts & Telecom Press, Osvaldo Martin
Python高级编程(第2版)

Python高级编程(第2版)

Posts & Telecom Press, Michał Jaworski, Tarek Ziadé

Publisher Resources

ISBN: 9787519856762