Skip to content

Commit 21a1e6d

Browse files
authored
Merge pull request #42336 from asa3311/sync-zh-39
[zh] sync manage-deployment logging flow-control
2 parents 05dc14f + 8416ca0 commit 21a1e6d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

content/zh-cn/docs/concepts/cluster-administration/flow-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ that originate from outside your cluster.
831831
则可以配置规则,阻止所有来自集群外部的健康检查请求。
832832
{{< /caution >}}
833833

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

836836
<!--
837837
## Diagnostics

content/zh-cn/docs/concepts/cluster-administration/logging.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Kubernetes 从正在运行的 Pod 中捕捉每个容器的日志。
6969

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

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

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

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

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

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

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

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

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

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

641641
<!--
642642
### Exposing logs directly from the application

content/zh-cn/docs/concepts/cluster-administration/manage-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Management of multiple resources can be simplified by grouping them together in
4141
可以通过将多个资源组合在同一个文件中(在 YAML 中以 `---` 分隔)
4242
来简化对它们的管理。例如:
4343

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

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

0 commit comments

Comments
 (0)