fix(deploy): 递归验证 containerd Registry 主机配置

K3s 1.36 将 Registry 镜像端点生成在 containerd/certs.d 子目录;验收改为递归检查整个 containerd 配置树,并继续以实际拉取 pause 镜像作为最终门禁。

验证:洛杉矶节点 Ready,三个 hosts.toml 端点存在,pause 镜像拉取成功。
This commit is contained in:
2026-07-28 05:07:23 +08:00
parent 95ddfb2a04
commit 6d7b2e88ba
+1 -1
View File
@@ -33,7 +33,7 @@ restart_node() {
return 1
}
cluster_ssh "$host" \
"grep -Fq 'https://docker.m.daocloud.io' /var/lib/rancher/k3s/agent/etc/containerd/config.toml && k3s crictl pull docker.io/rancher/mirrored-pause:3.6 >/dev/null"
"grep -RFq 'https://docker.m.daocloud.io' /var/lib/rancher/k3s/agent/etc/containerd && k3s crictl pull docker.io/rancher/mirrored-pause:3.6 >/dev/null"
echo "[registry] $node ready"
}