Browse Source

add retry for start calico kube controller (#9450)

Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
pull/9461/head
cleverhu 2 years ago
committed by GitHub
parent
commit
5cf2883444
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. 3
      roles/kubernetes-apps/policy_controller/calico/tasks/main.yml

3
roles/kubernetes-apps/policy_controller/calico/tasks/main.yml

@ -33,6 +33,9 @@
state: "latest"
with_items:
- "{{ calico_kube_manifests.results }}"
register: calico_kube_controller_start
until: calico_kube_controller_start is succeeded
retries: 4
when:
- inventory_hostname == groups['kube_control_plane'][0]
- not item is skipped

Loading…
Cancel
Save