Skip to content

Commit 231efd7

Browse files
authored
Merge pull request #35717 from hs0210/determine-reason-pod-failure
[zh-cn] resync: determine-reason-pod-failure.md
2 parents 5422baf + 0ebb9fe commit 231efd7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/zh-cn/docs/tasks/debug/debug-application/determine-reason-pod-failure.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,26 @@ Kubernetes 从容器的 `terminationMessagePath` 字段中指定的终止消息
126126
通过定制这个字段,你可以告诉 Kubernetes 使用不同的文件。
127127
Kubernetes 使用指定文件中的内容在成功和失败时填充容器的状态消息。
128128

129+
<!--
130+
The termination message is intended to be brief final status, such as an assertion failure message.
131+
The kubelet truncates messages that are longer than 4096 bytes.
132+
133+
The total message length across all containers is limited to 12KiB, divided equally among each container.
134+
For example, if there are 12 containers (`initContainers` or `containers`), each has 1024 bytes of available termination message space.
135+
136+
The default termination message path is `/dev/termination-log`.
137+
You cannot set the termination message path after a Pod is launched
138+
-->
139+
终止消息旨在简要说明最终状态,例如断言失败消息。
140+
kubelet 会截断长度超过 4096 字节的消息。
141+
142+
所有容器的总消息长度限制为 12KiB,将会在每个容器之间平均分配。
143+
例如,如果有 12 个容器(`initContainers``containers`),
144+
每个容器都有 1024 字节的可用终止消息空间。
145+
146+
默认的终止消息路径是 `/dev/termination-log`
147+
Pod 启动后不能设置终止消息路径。
148+
129149
<!--
130150
In the following example, the container writes termination messages to
131151
`/tmp/my-log` for Kubernetes to retrieve:

0 commit comments

Comments
 (0)