fix: seed kube-vip image from runner
Deploy Cluster / Terraform (push) Failing after 1m56s
Deploy Cluster / Ansible (push) Has been skipped

This commit is contained in:
2026-04-26 04:28:21 +00:00
parent 24851f5a9b
commit 440e268e4f
2 changed files with 33 additions and 0 deletions
@@ -1,4 +1,23 @@
---
- name: Check for runner-provided kube-vip image archive
stat:
path: "{{ playbook_dir }}/../outputs/kube-vip-bootstrap.tar"
delegate_to: localhost
become: false
register: kube_vip_bootstrap_archive
- name: Copy runner-provided kube-vip image archive
copy:
src: "{{ playbook_dir }}/../outputs/kube-vip-bootstrap.tar"
dest: /tmp/kube-vip-bootstrap.tar
mode: "0644"
when: kube_vip_bootstrap_archive.stat.exists
- name: Import runner-provided kube-vip image archive
command: /usr/local/bin/ctr -n k8s.io images import /tmp/kube-vip-bootstrap.tar
changed_when: false
when: kube_vip_bootstrap_archive.stat.exists
- name: Pre-pull kube-vip bootstrap images into containerd
shell: |
if /usr/local/bin/ctr -n k8s.io images ls -q | grep -Fx -- "{{ item }}" >/dev/null; then