mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Add retries to 'Set label for route reflector' task (#7645)
This commit is contained in:
@@ -9,3 +9,8 @@
|
|||||||
command: >-
|
command: >-
|
||||||
{{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }}
|
{{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }}
|
||||||
'i-am-a-route-reflector=true' --overwrite
|
'i-am-a-route-reflector=true' --overwrite
|
||||||
|
changed_when: false
|
||||||
|
register: calico_rr_label
|
||||||
|
until: calico_rr_label is succeeded
|
||||||
|
delay: "{{ retry_stagger | random + 3 }}"
|
||||||
|
retries: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user