fix: use mirror-aware crictl prepulls
Deploy Cluster / Terraform (push) Successful in 33s
Deploy Cluster / Ansible (push) Failing after 59m33s

This commit is contained in:
2026-05-03 01:50:22 +00:00
parent 600aa4787d
commit 3dbba22a6d
4 changed files with 7 additions and 7 deletions
@@ -1,7 +1,7 @@
---
- name: Pull Rancher images into containerd
shell: |
if /usr/local/bin/ctr -n k8s.io images ls -q | grep -Fx -- "{{ item }}" >/dev/null; then
if /usr/local/bin/k3s crictl inspecti "{{ item }}" >/dev/null 2>&1; then
echo "already present"
exit 0
fi
@@ -11,7 +11,7 @@
for attempt in 1 2 3 4 5 6 7 8 9 10; do
echo "pull attempt ${attempt}: {{ item }}"
if timeout 240s /usr/local/bin/ctr -n k8s.io images pull "{{ item }}"; then
if timeout 240s /usr/local/bin/k3s crictl pull "{{ item }}"; then
echo "pulled image"
exit 0
fi