Skip to content

Commit cbd4d3b

Browse files
committed
[zh-cn]sync production-environment/container-runtimes.md
Signed-off-by: xin.li <[email protected]>
1 parent 1e232e3 commit cbd4d3b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

content/zh-cn/docs/setup/production-environment/container-runtimes.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,19 @@ Your container runtime must support at least v1alpha2 of the container runtime i
301301
Kubernetes {{< skew currentVersion >}} defaults to using v1 of the CRI API.
302302
If a container runtime does not support the v1 API, the kubelet falls back to
303303
using the (deprecated) v1alpha2 API instead.
304+
305+
Kubernetes [starting v1.26](/blog/2022/11/18/upcoming-changes-in-kubernetes-1-26/#cri-api-removal)
306+
_only works_ with v1 of the CRI API. Earlier versions default
307+
to v1 version, however if a container runtime does not support the v1 API, the kubelet falls back to
308+
using the (deprecated) v1alpha2 API instead.
304309
-->
305310
## CRI 版本支持 {#cri-versions}
306311

307312
你的容器运行时必须至少支持 v1alpha2 版本的容器运行时接口。
308313

309-
Kubernetes {{< skew currentVersion >}} 默认使用 v1 版本的 CRI API。如果容器运行时不支持 v1 版本的 API,
314+
Kubernetes [从 1.26 版本开始](/blog/2022/11/18/upcoming-changes-in-kubernetes-1-26/#cri-api-removal)**仅适用于**
315+
v1 版本的容器运行时(CRI)API。早期版本默认为 v1 版本,
316+
但是如果容器运行时不支持 v1 版本的 API,
310317
则 kubelet 会回退到使用(已弃用的)v1alpha2 版本的 API。
311318

312319
<!--
@@ -445,6 +452,17 @@ You might need to restart `containerd` as well once you've updated the config fi
445452
-->
446453
一旦你更新了这个配置文件,可能就同样需要重启 `containerd``systemctl restart containerd`
447454

455+
<!--
456+
Please note, that it is a best practice for kubelet to declare the matching `pod-infra-container-image`.
457+
If not configured, kubelet may attempt to garbage collect the `pause` image.
458+
There is ongoing work in [containerd to pin the pause image](https://github.com/containerd/containerd/issues/6352)
459+
and not require this setting on kubelet any longer.
460+
-->
461+
请注意,声明匹配的 `pod-infra-container-image` 是 kubelet 的最佳实践。
462+
如果未配置,kubelet 可能会尝试对 `pause` 镜像进行垃圾回收。
463+
[containerd 固定 pause 镜像](https://github.com/containerd/containerd/issues/6352)的工作正在进行中,
464+
将不再需要在 kubelet 上进行此设置。
465+
448466
### CRI-O
449467

450468
<!--

0 commit comments

Comments
 (0)