Skip to content

Commit

Permalink
sync manage-deployment logging flow-control
Browse files Browse the repository at this point in the history
  • Loading branch information
asa3311 committed Aug 1, 2023
1 parent 001873c commit 8416ca0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ that originate from outside your cluster.
则可以配置规则,阻止所有来自集群外部的健康检查请求。
{{< /caution >}}

{{% codenew file="priority-and-fairness/health-for-strangers.yaml" %}}
{{% code file="priority-and-fairness/health-for-strangers.yaml" %}}

<!--
## Diagnostics
Expand Down
10 changes: 5 additions & 5 deletions content/zh-cn/docs/concepts/cluster-administration/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Kubernetes 从正在运行的 Pod 中捕捉每个容器的日志。

此示例使用带有一个容器的 `Pod` 的清单,该容器每秒将文本写入标准输出一次。

{{% codenew file="debug/counter-pod.yaml" %}}
{{% code file="debug/counter-pod.yaml" %}}

<!--
To run this pod, use the following command:
Expand Down Expand Up @@ -463,7 +463,7 @@ manifest for the Pod:
例如,某 Pod 中运行一个容器,且该容器使用两个不同的格式写入到两个不同的日志文件。
下面是这个 Pod 的清单:

{{% codenew file="admin/logging/two-files-counter-pod.yaml" %}}
{{% code file="admin/logging/two-files-counter-pod.yaml" %}}

<!--
It is not recommended to write log entries with different formats to the same log
Expand All @@ -481,7 +481,7 @@ Here's a manifest for a pod that has two sidecar containers:
-->
下面是运行两个边车容器的 Pod 的清单:

{{% codenew file="admin/logging/two-files-counter-pod-streaming-sidecar.yaml" %}}
{{% code file="admin/logging/two-files-counter-pod-streaming-sidecar.yaml" %}}

<!--
Now when you run this pod, you can access each log stream separately by
Expand Down Expand Up @@ -619,7 +619,7 @@ to configure fluentd.
第一个文件包含用来配置 fluentd 的
[ConfigMap](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/)

{{% codenew file="admin/logging/fluentd-sidecar-config.yaml" %}}
{{% code file="admin/logging/fluentd-sidecar-config.yaml" %}}

{{< note >}}
<!--
Expand All @@ -636,7 +636,7 @@ The pod mounts a volume where fluentd can pick up its configuration data.
第二个清单描述了一个运行 fluentd 边车容器的 Pod。
该 Pod 挂载一个卷,flutend 可以从这个卷上拣选其配置数据。

{{% codenew file="admin/logging/two-files-counter-pod-agent-sidecar.yaml" %}}
{{% code file="admin/logging/two-files-counter-pod-agent-sidecar.yaml" %}}

<!--
### Exposing logs directly from the application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Management of multiple resources can be simplified by grouping them together in
可以通过将多个资源组合在同一个文件中(在 YAML 中以 `---` 分隔)
来简化对它们的管理。例如:

{{< codenew file="application/nginx-app.yaml" >}}
{{% code file="application/nginx-app.yaml" %}}

<!--
Multiple resources can be created the same way as a single resource:
Expand Down

0 comments on commit 8416ca0

Please sign in to comment.