fix: harden final health checks
This commit is contained in:
@@ -89,6 +89,39 @@
|
||||
roles:
|
||||
- k3s-server
|
||||
|
||||
- name: Export kube-vip image from primary control plane
|
||||
hosts: control_plane[0]
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Export kube-vip image for secondary control planes
|
||||
command: >-
|
||||
/usr/local/bin/ctr -n k8s.io images export
|
||||
/tmp/kube-vip-bootstrap.tar
|
||||
ghcr.io/kube-vip/kube-vip:v1.1.2
|
||||
changed_when: false
|
||||
|
||||
- name: Fetch kube-vip image archive
|
||||
fetch:
|
||||
src: /tmp/kube-vip-bootstrap.tar
|
||||
dest: ../outputs/kube-vip-bootstrap.tar
|
||||
flat: true
|
||||
|
||||
- name: Seed kube-vip image on secondary control planes
|
||||
hosts: control_plane[1:]
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Copy kube-vip image archive
|
||||
copy:
|
||||
src: ../outputs/kube-vip-bootstrap.tar
|
||||
dest: /tmp/kube-vip-bootstrap.tar
|
||||
mode: "0644"
|
||||
|
||||
- name: Import kube-vip image into containerd
|
||||
command: /usr/local/bin/ctr -n k8s.io images import /tmp/kube-vip-bootstrap.tar
|
||||
changed_when: false
|
||||
|
||||
- name: Setup workers
|
||||
hosts: workers
|
||||
become: true
|
||||
|
||||
Reference in New Issue
Block a user