<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="675" viewBox="0 0 1200 675" role="img" aria-labelledby="t d" data-image-type="layered_relationship" data-visual-grammar="architecture-layer">
  <title id="t">K8s容器运行时关系图</title>
  <desc id="d">image_type: layered_relationship; 关系图; 层级示意; target_section: 运行时先解决什么问题; purpose: 展示kubelet、CRI、containerd、CRI-O、镜像仓库、宿主机资源和Pod生命周期的关系; reader_task: 理解运行时在K8s节点链路中的位置和选型影响。</desc>
  <defs><style>text{font-family:system-ui,Arial,Helvetica,"Microsoft YaHei",sans-serif;fill:#0f172a}.bg{fill:#f8fafc}.card{fill:#fff;stroke:#cbd5e1;stroke-width:2}.blue{fill:#eff6ff;stroke:#2563eb;stroke-width:2.5}.cyan{fill:#ecfeff;stroke:#0891b2;stroke-width:2.5}.indigo{fill:#eef2ff;stroke:#4f46e5;stroke-width:2.5}.gray{fill:#f1f5f9;stroke:#64748b;stroke-width:2}.title{font-size:28px;font-weight:700}.h{font-size:22px;font-weight:700}.p{font-size:17px;fill:#475569}.s{font-size:15px;fill:#64748b}</style></defs>
  <rect class="bg" width="1200" height="675"/>
  <text class="title" x="600" y="86" text-anchor="middle">运行时位于kubelet与宿主机之间</text>
  <text class="p" x="600" y="122" text-anchor="middle">把Pod声明转换成镜像、容器进程、资源限制和状态回报</text>
  <rect class="blue" x="130" y="170" width="260" height="130" rx="22"/>
  <text class="h" x="160" y="215">kubelet</text><text class="p" x="160" y="252">接收Pod声明</text><text class="p" x="160" y="280">维护节点状态</text>
  <rect class="cyan" x="470" y="170" width="260" height="130" rx="22"/>
  <text class="h" x="500" y="215">CRI接口</text><text class="p" x="500" y="252">统一运行时调用</text><text class="p" x="500" y="280">创建 / 启动 / 状态</text>
  <rect class="indigo" x="810" y="170" width="260" height="130" rx="22"/>
  <text class="h" x="840" y="215">镜像仓库</text><text class="p" x="840" y="252">拉取镜像</text><text class="p" x="840" y="280">校验与缓存</text>
  <rect class="cyan" x="210" y="385" width="300" height="140" rx="24"/>
  <text class="h" x="240" y="430">containerd</text><text class="p" x="240" y="468">运行时底座</text><text class="p" x="240" y="496">生态兼容广</text>
  <rect class="cyan" x="690" y="385" width="300" height="140" rx="24"/>
  <text class="h" x="720" y="430">CRI-O</text><text class="p" x="720" y="468">CRI场景</text><text class="p" x="720" y="496">Kubernetes聚焦</text>
  <rect class="gray" x="360" y="560" width="480" height="62" rx="18"/>
  <text class="h" x="600" y="599" text-anchor="middle">宿主机资源：CPU、内存、网络、存储</text>
</svg>
