ee6417c18e
Fresh clusters were repeatedly timing out while kubelet pulled the pause image, k3s packaged component images, and Flux controller images onto the first control plane. Pre-pull the core control-plane bootstrap images into containerd on cp-1 so Flux and packaged addons start from a warm cache instead of racing registry TLS timeouts.
11 lines
297 B
YAML
11 lines
297 B
YAML
---
|
|
- name: Pre-pull bootstrap images into containerd
|
|
command: /usr/local/bin/ctr -n k8s.io images pull {{ item }}
|
|
register: bootstrap_image_pull
|
|
retries: 12
|
|
delay: 15
|
|
until: bootstrap_image_pull.rc == 0
|
|
loop: "{{ bootstrap_prepull_images }}"
|
|
changed_when: true
|
|
failed_when: false
|