fix: reduce rebuild wait bottlenecks
This commit is contained in:
@@ -12,3 +12,5 @@ k3s_registry_mirrors:
|
||||
port: 5003
|
||||
oci.external-secrets.io:
|
||||
port: 5004
|
||||
registry.rancher.com:
|
||||
port: 5005
|
||||
|
||||
+7
-3
@@ -161,11 +161,15 @@
|
||||
when: kube_vip_rollout.rc != 0
|
||||
|
||||
- name: Wait for control plane node readiness
|
||||
command: kubectl wait --for=condition=Ready node/{{ item }} --timeout=30s
|
||||
shell: |
|
||||
set -euo pipefail
|
||||
kubectl get node/{{ item }} -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}' | grep -qx True
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: control_plane_ready
|
||||
until: control_plane_ready.rc == 0
|
||||
retries: 20
|
||||
delay: 15
|
||||
retries: 90
|
||||
delay: 10
|
||||
changed_when: false
|
||||
loop: "{{ groups['control_plane'] }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user