@@ -69,7 +69,7 @@ Kubernetes 从正在运行的 Pod 中捕捉每个容器的日志。
69
69
70
70
此示例使用带有一个容器的 ` Pod ` 的清单,该容器每秒将文本写入标准输出一次。
71
71
72
- {{% codenew file="debug/counter-pod.yaml" %}}
72
+ {{% code file="debug/counter-pod.yaml" %}}
73
73
74
74
<!--
75
75
To run this pod, use the following command:
@@ -463,7 +463,7 @@ manifest for the Pod:
463
463
例如,某 Pod 中运行一个容器,且该容器使用两个不同的格式写入到两个不同的日志文件。
464
464
下面是这个 Pod 的清单:
465
465
466
- {{% codenew file="admin/logging/two-files-counter-pod.yaml" %}}
466
+ {{% code file="admin/logging/two-files-counter-pod.yaml" %}}
467
467
468
468
<!--
469
469
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:
481
481
-->
482
482
下面是运行两个边车容器的 Pod 的清单:
483
483
484
- {{% codenew file="admin/logging/two-files-counter-pod-streaming-sidecar.yaml" %}}
484
+ {{% code file="admin/logging/two-files-counter-pod-streaming-sidecar.yaml" %}}
485
485
486
486
<!--
487
487
Now when you run this pod, you can access each log stream separately by
@@ -619,7 +619,7 @@ to configure fluentd.
619
619
第一个文件包含用来配置 fluentd 的
620
620
[ ConfigMap] ( /zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/ ) 。
621
621
622
- {{% codenew file="admin/logging/fluentd-sidecar-config.yaml" %}}
622
+ {{% code file="admin/logging/fluentd-sidecar-config.yaml" %}}
623
623
624
624
{{< note >}}
625
625
<!--
@@ -636,7 +636,7 @@ The pod mounts a volume where fluentd can pick up its configuration data.
636
636
第二个清单描述了一个运行 fluentd 边车容器的 Pod。
637
637
该 Pod 挂载一个卷,flutend 可以从这个卷上拣选其配置数据。
638
638
639
- {{% codenew file="admin/logging/two-files-counter-pod-agent-sidecar.yaml" %}}
639
+ {{% code file="admin/logging/two-files-counter-pod-agent-sidecar.yaml" %}}
640
640
641
641
<!--
642
642
### Exposing logs directly from the application
0 commit comments