Skip to content

Commit 9cfd2a5

Browse files
authored
Merge pull request #32674 from tengqm/fix-32292
[zh] Fix a link issue on the logging page
2 parents 285dd57 + 4e05e9f commit 9cfd2a5

File tree

1 file changed

+7
-7
lines changed
  • content/zh/docs/concepts/cluster-administration

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,22 @@ The output is:
9797
You can use `kubectl logs --previous` to retrieve logs from a previous instantiation of a container.
9898
If your pod has multiple containers, specify which container's logs you want to access by
9999
appending a container name to the command, with a `-c` flag, like so:
100-
```console
101-
kubectl logs counter -c count
102-
```
103-
See the [`kubectl logs` documentation](/docs/reference/generated/kubectl/kubectl-commands#logs) for more details.
104100
-->
105101
你可以使用命令 `kubectl logs --previous` 检索之前容器实例的日志。
106102
如果 Pod 中有多个容器,你应该为该命令附加容器名以访问对应容器的日志。
107103
详见 [`kubectl logs` 文档](/docs/reference/generated/kubectl/kubectl-commands#logs)
108104
如果 Pod 有多个容器,你应该为该命令附加容器名以访问对应容器的日志,
109105
使用 `-c` 标志来指定要访问的容器的日志,如下所示:
110-
```console
111106

107+
```console
112108
kubectl logs counter -c count
113-
114109
```
115-
详见 [kubectl logs 文档](/zh/docs/reference/generated/kubectl/kubectl-commands#logs)
110+
111+
<!--
112+
See the [`kubectl logs` documentation](/docs/reference/generated/kubectl/kubectl-commands#logs) for more details.
113+
-->
114+
详见 [`kubectl logs` 文档](/docs/reference/generated/kubectl/kubectl-commands#logs)
115+
116116
<!--
117117
## Logging at the node level
118118

0 commit comments

Comments
 (0)