官术网_书友最值得收藏!

Sending output from your program

kubectl logs (as well as the Docker equivalent: docker logs) defaults to combining stdout and stderr and passing anything presented as logs for the container. You may have also had experience with creating specific logging capabilities in your code to write logs to a file location on disk. In general, writing logs to a filesystem location is not encouraged for software running within a container, as to include it in general logging means that something has to read it again, which unnecessarily increases disk I/O.

If you want to have a means of supporting aggregated logging in your application, then you will typically want to have something external to your container and/or Pod defined to help capture, transport, and process those logs.

In general, if you write your programs to log to stdout and stderr, then containers and Kubernetes running those containers will generally help you to get access to those details more easily.

主站蜘蛛池模板: 丹巴县| 饶阳县| 遂溪县| 霍山县| 遂昌县| 娄底市| 湖州市| 沾化县| 达州市| 涟源市| 乌拉特中旗| 周至县| 宽城| 池州市| 丰台区| 孟村| 重庆市| 夹江县| 武宁县| 新疆| 鞍山市| 沁水县| 兴仁县| 象山县| 澳门| 七台河市| 卢氏县| 寿阳县| 繁昌县| 阿克| 大丰市| 咸阳市| 保山市| 广平县| 淳安县| 宝丰县| 阳山县| 东乌珠穆沁旗| 安岳县| 萝北县| 西青区|