- Kubernetes for Developers
- Joseph Heck
- 159字
- 2021-08-27 19:04:18
Logs
The most common method of getting information about how your code is working is generally through logs. Every language and development environment has its own pattern of how to expose those details, but at the very basics, it can be as simple as a print statement sending a line of text that will mean something to you to stdout. It is without a doubt the most consistent means across all programming languages of quick and simple debugging. When you deploy and run your code in Kubernetes, it maintains access to the logs from each Pod and container—where logs, in this case, are sending data to stdout and stderr.
If your existing pattern of development writes output to a specific file location, and maybe your framework includes the capability of rotating those log files as they grow, you may want to consider just sending data to stdout and/or stderr so that Kubernetes can make this coordination work.
- PPT,要你好看
- Java實用組件集
- AWS:Security Best Practices on AWS
- Julia 1.0 Programming
- 工業機器人工程應用虛擬仿真教程:MotoSim EG-VRC
- Python Data Science Essentials
- iClone 4.31 3D Animation Beginner's Guide
- 機器人創新實訓教程
- SharePoint 2010開發最佳實踐
- AWS Certified SysOps Administrator:Associate Guide
- 21天學通Java Web開發
- Windows游戲程序設計基礎
- 中國戰略性新興產業研究與發展·工業機器人
- 網中之我:何明升網絡社會論稿
- Building a BeagleBone Black Super Cluster