Browse Source

Add retries to 'Set label for route reflector' task (#7645)

pull/8050/head
forselli-stratio 3 years ago
committed by GitHub
parent
commit
eff1931283
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. 5
      roles/network_plugin/calico/rr/tasks/main.yml

5
roles/network_plugin/calico/rr/tasks/main.yml

@ -9,3 +9,8 @@
command: >-
{{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }}
'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
Loading…
Cancel
Save