From 06182c9a638f818847226ade78064dfa2d8d1320 Mon Sep 17 00:00:00 2001 From: KKtheGhost Date: Sun, 4 Feb 2024 21:22:48 +0900 Subject: [PATCH] [zh] sync `concepts/containers/image.md` Update content/zh-cn/docs/concepts/containers/images.md Co-authored-by: Mengjiao Liu Co-authored-by: Michael --- .../zh-cn/docs/concepts/containers/images.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/content/zh-cn/docs/concepts/containers/images.md b/content/zh-cn/docs/concepts/containers/images.md index ac3b849b5b..846cbb0517 100644 --- a/content/zh-cn/docs/concepts/containers/images.md +++ b/content/zh-cn/docs/concepts/containers/images.md @@ -300,6 +300,31 @@ which is 300 seconds (5 minutes). Kubernetes 会增加每次尝试之间的延迟,直到达到编译限制,即 300 秒(5 分钟)。 + +### 基于运行时类的镜像拉取 {#image-pull-per-runtime-class} + +{{< feature-state for_k8s_version="v1.29" state="alpha" >}} + + +Kubernetes 包含了根据 Pod 的 RuntimeClass 来执行镜像拉取的 Alpha 支持。 + + +如果你启用了 `RuntimeClassInImageCriApi` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/), +kubelet 会通过一个元组(镜像名称,运行时处理程序)而不仅仅是镜像名称或镜像摘要来引用容器镜像。 +你的{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}} +可能会根据选定的运行时处理程序调整其行为。 +基于运行时类来拉取镜像对于基于 VM 的容器(如 Windows Hyper-V 容器)会有帮助。 +