@@ -23,7 +23,6 @@ You can use it to inspect and debug container runtimes and applications on a
23
23
Kubernetes node. `crictl` and its source are hosted in the
24
24
[cri-tools](https://github.com/kubernetes-sigs/cri-tools) repository.
25
25
-->
26
-
27
26
` crictl ` 是 CRI 兼容的容器运行时命令行接口。
28
27
你可以使用它来检查和调试 Kubernetes 节点上的容器运行时和应用程序。
29
28
` crictl ` 和它的源代码在
@@ -82,6 +81,14 @@ You can set the endpoint for `crictl` by doing one of the following:
82
81
- 在配置文件 ` --config=/etc/crictl.yaml ` 中设置端点。
83
82
要设置不同的文件,可以在运行 ` crictl ` 时使用 ` --config=PATH_TO_FILE ` 标志。
84
83
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
+
85
92
<!--
86
93
You can also specify timeout values when connecting to the server and enable or
87
94
disable debugging, by specifying `timeout` or `debug` values in the configuration
@@ -98,7 +105,7 @@ container runtime would be similar to this:
98
105
要查看或编辑当前配置,请查看或编辑 ` /etc/crictl.yaml ` 的内容。
99
106
例如,使用 ` containerd ` 容器运行时的配置会类似于这样:
100
107
101
- ```
108
+ ``` none
102
109
runtime-endpoint: unix:///var/run/containerd/containerd.sock
103
110
image-endpoint: unix:///var/run/containerd/containerd.sock
104
111
timeout: 10
@@ -148,7 +155,7 @@ The output is similar to this:
148
155
-->
149
156
输出类似于:
150
157
151
- ```
158
+ ``` none
152
159
POD ID CREATED STATE NAME NAMESPACE ATTEMPT
153
160
926f1b5a1d33a About a minute ago Ready sh-84d7dcf559-4r2gq default 0
154
161
4dccb216c4adb About a minute ago Ready nginx-65899c769f-wv2gp default 0
@@ -170,7 +177,7 @@ The output is similar to this:
170
177
-->
171
178
输出类似于这样:
172
179
173
- ```
180
+ ``` none
174
181
POD ID CREATED STATE NAME NAMESPACE ATTEMPT
175
182
4dccb216c4adb 2 minutes ago Ready nginx-65899c769f-wv2gp default 0
176
183
```
@@ -422,7 +429,7 @@ deleted by the Kubelet.
422
429
### 创建容器 {#create-a-container}
423
430
424
431
用 ` crictl ` 创建容器对容器运行时排错很有帮助。
425
- 在运行的 Kubernetes 集群中,沙盒会随机的被 kubelet 停止和删除。
432
+ 在运行的 Kubernetes 集群中,沙盒会随机地被 kubelet 停止和删除。
426
433
427
434
<!--
428
435
1. Pull a busybox image
@@ -506,7 +513,7 @@ deleted by the Kubelet.
506
513
The output is similar to this:
507
514
-->
508
515
输出类似于这样:
509
-
516
+
510
517
``` none
511
518
CONTAINER ID IMAGE CREATED STATE NAME ATTEMPT
512
519
3e025dd50a72d busybox 32 seconds ago Created busybox 0
@@ -548,7 +555,7 @@ The output is similar to this:
548
555
-->
549
556
输出类似于这样:
550
557
551
- ```
558
+ ``` none
552
559
CONTAINER ID IMAGE CREATED STATE NAME ATTEMPT
553
560
3e025dd50a72d busybox About a minute ago Running busybox 0
554
561
```
0 commit comments