From 6d7b2e88ba9db1b81ef564c89d9866e53ef8547d Mon Sep 17 00:00:00 2001 From: wangbo Date: Tue, 28 Jul 2026 05:07:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=E9=80=92=E5=BD=92=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=20containerd=20Registry=20=E4=B8=BB=E6=9C=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit K3s 1.36 将 Registry 镜像端点生成在 containerd/certs.d 子目录;验收改为递归检查整个 containerd 配置树,并继续以实际拉取 pause 镜像作为最终门禁。 验证:洛杉矶节点 Ready,三个 hosts.toml 端点存在,pause 镜像拉取成功。 --- scripts/cluster/configure-k3s-registries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cluster/configure-k3s-registries.sh b/scripts/cluster/configure-k3s-registries.sh index 03e134c..c7f59d2 100755 --- a/scripts/cluster/configure-k3s-registries.sh +++ b/scripts/cluster/configure-k3s-registries.sh @@ -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" }