- Kubernetes for Developers
- Joseph Heck
- 84字
- 2021-08-27 19:04:18
Streaming the logs
A common desire is to see a continuously flowing set of logs from your container, updated as the container provides the information. You can enable this with the -f option. For example, to see the updated logs from the Pod associated with the flask deployment, you can run the following command:
kubectl logs deployment/flask -f
As you interact with that service, or that service writes to stdout and does its normal logging, you will see the output streamed to your console.
推薦閱讀
- Google Cloud Platform Cookbook
- PostgreSQL 11 Server Side Programming Quick Start Guide
- TestStand工業自動化測試管理(典藏版)
- 精通Windows Vista必讀
- Hands-On Linux for Architects
- 機器人編程實戰
- Java Web整合開發全程指南
- AI 3.0
- Implementing AWS:Design,Build,and Manage your Infrastructure
- 零起點學西門子S7-200 PLC
- 軟件工程及實踐
- 單片機技術項目化原理與實訓
- 工業機器人實操進階手冊
- 網絡服務器搭建與管理
- WOW!Photoshop CS6完全自學寶典