From fffe8117bd6b8812e805739ecfb785285af41cbe Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Sun, 15 May 2022 18:55:50 +0800 Subject: [PATCH] [zh] adjust format Signed-off-by: xin.li --- .../debug-application/determine-reason-pod-failure.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/zh/docs/tasks/debug/debug-application/determine-reason-pod-failure.md b/content/zh/docs/tasks/debug/debug-application/determine-reason-pod-failure.md index b7f1a4a7ab..0f604f289f 100644 --- a/content/zh/docs/tasks/debug/debug-application/determine-reason-pod-failure.md +++ b/content/zh/docs/tasks/debug/debug-application/determine-reason-pod-failure.md @@ -27,7 +27,7 @@ the general --> 终止消息为容器提供了一种方法,可以将有关致命事件的信息写入某个位置, 在该位置可以通过仪表板和监控软件等工具轻松检索和显示致命事件。 -在大多数情况下,您放入终止消息中的信息也应该写入 +在大多数情况下,你放入终止消息中的信息也应该写入 [常规 Kubernetes 日志](/zh/docs/concepts/cluster-administration/logging/)。 ## {{% heading "prerequisites" %}} @@ -45,7 +45,7 @@ the container starts. --> ## 读写终止消息 -在本练习中,您将创建运行一个容器的 Pod。 +在本练习中,你将创建运行一个容器的 Pod。 配置文件指定在容器启动时要运行的命令。 {{< codenew file="debug/termination.yaml" >}} @@ -123,7 +123,7 @@ populate the Container's status message on both success and failure. Kubernetes 从容器的 `terminationMessagePath` 字段中指定的终止消息文件中检索终止消息, 默认值为 `/dev/termination-log`。 -通过定制这个字段,您可以告诉 Kubernetes 使用不同的文件。 +通过定制这个字段,你可以告诉 Kubernetes 使用不同的文件。 Kubernetes 使用指定文件中的内容在成功和失败时填充容器的状态消息。 - 此外,用户可以设置容器的 `terminationMessagePolicy` 字段,以便进一步自定义。 此字段默认为 "`File`",这意味着仅从终止消息文件中检索终止消息。 通过将 `terminationMessagePolicy` 设置为 "`FallbackToLogsOnError`",你就可以告诉 Kubernetes,在容器因错误退出时,如果终止消息文件为空,则使用容器日志输出的最后一块作为终止消息。