Skip to content

Commit f13620b

Browse files
authored
Merge pull request #38810 from windsonsea/crictly
[zh] sync /debug/debug-cluster/crictl.md
2 parents 03c8e06 + 0cac734 commit f13620b

File tree

1 file changed

+14
-7
lines changed
  • content/zh-cn/docs/tasks/debug/debug-cluster

1 file changed

+14
-7
lines changed

content/zh-cn/docs/tasks/debug/debug-cluster/crictl.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ You can use it to inspect and debug container runtimes and applications on a
2323
Kubernetes node. `crictl` and its source are hosted in the
2424
[cri-tools](https://github.com/kubernetes-sigs/cri-tools) repository.
2525
-->
26-
2726
`crictl` 是 CRI 兼容的容器运行时命令行接口。
2827
你可以使用它来检查和调试 Kubernetes 节点上的容器运行时和应用程序。
2928
`crictl` 和它的源代码在
@@ -82,6 +81,14 @@ You can set the endpoint for `crictl` by doing one of the following:
8281
- 在配置文件 `--config=/etc/crictl.yaml` 中设置端点。
8382
要设置不同的文件,可以在运行 `crictl` 时使用 `--config=PATH_TO_FILE` 标志。
8483

84+
{{<note>}}
85+
<!--
86+
If you don't set an endpoint, `crictl` attempts to connect to a list of known
87+
endpoints, which might result in an impact to performance.
88+
-->
89+
如果你不设置端点,`crictl` 将尝试连接到已知端点的列表,这可能会影响性能。
90+
{{</note>}}
91+
8592
<!--
8693
You can also specify timeout values when connecting to the server and enable or
8794
disable debugging, by specifying `timeout` or `debug` values in the configuration
@@ -98,7 +105,7 @@ container runtime would be similar to this:
98105
要查看或编辑当前配置,请查看或编辑 `/etc/crictl.yaml` 的内容。
99106
例如,使用 `containerd` 容器运行时的配置会类似于这样:
100107

101-
```
108+
```none
102109
runtime-endpoint: unix:///var/run/containerd/containerd.sock
103110
image-endpoint: unix:///var/run/containerd/containerd.sock
104111
timeout: 10
@@ -148,7 +155,7 @@ The output is similar to this:
148155
-->
149156
输出类似于:
150157

151-
```
158+
```none
152159
POD ID CREATED STATE NAME NAMESPACE ATTEMPT
153160
926f1b5a1d33a About a minute ago Ready sh-84d7dcf559-4r2gq default 0
154161
4dccb216c4adb About a minute ago Ready nginx-65899c769f-wv2gp default 0
@@ -170,7 +177,7 @@ The output is similar to this:
170177
-->
171178
输出类似于这样:
172179

173-
```
180+
```none
174181
POD ID CREATED STATE NAME NAMESPACE ATTEMPT
175182
4dccb216c4adb 2 minutes ago Ready nginx-65899c769f-wv2gp default 0
176183
```
@@ -422,7 +429,7 @@ deleted by the Kubelet.
422429
### 创建容器 {#create-a-container}
423430

424431
`crictl` 创建容器对容器运行时排错很有帮助。
425-
在运行的 Kubernetes 集群中,沙盒会随机的被 kubelet 停止和删除。
432+
在运行的 Kubernetes 集群中,沙盒会随机地被 kubelet 停止和删除。
426433

427434
<!--
428435
1. Pull a busybox image
@@ -506,7 +513,7 @@ deleted by the Kubelet.
506513
The output is similar to this:
507514
-->
508515
输出类似于这样:
509-
516+
510517
```none
511518
CONTAINER ID IMAGE CREATED STATE NAME ATTEMPT
512519
3e025dd50a72d busybox 32 seconds ago Created busybox 0
@@ -548,7 +555,7 @@ The output is similar to this:
548555
-->
549556
输出类似于这样:
550557

551-
```
558+
```none
552559
CONTAINER ID IMAGE CREATED STATE NAME ATTEMPT
553560
3e025dd50a72d busybox About a minute ago Running busybox 0
554561
```

0 commit comments

Comments
 (0)