Skip to content

Commit 0499442

Browse files
authored
Merge pull request #33320 from imjasonh/patch-1
Document per-container termination message limits
2 parents 8f576a7 + d27223e commit 0499442

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ to use a different file. Kubernetes use the contents from the specified file to
9090
populate the Container's status message on both success and failure.
9191

9292
The termination message is intended to be brief final status, such as an assertion failure message.
93-
The kubelet truncates messages that are longer than 4096 bytes. The total message length across all
94-
containers will be limited to 12KiB. The default termination message path is `/dev/termination-log`.
93+
The kubelet truncates messages that are longer than 4096 bytes.
94+
95+
The total message length across all containers is limited to 12KiB, divided equally among each container.
96+
For example, if there are 12 containers (`initContainers` or `containers`), each has 1024 bytes of available termination message space.
97+
98+
The default termination message path is `/dev/termination-log`.
9599
You cannot set the termination message path after a Pod is launched
96100

97101
In the following example, the container writes termination messages to

0 commit comments

Comments
 (0)