Skip to content

Commit

Permalink
Merge pull request #144 from rfranks-securenet/retry-networking-setup
Browse files Browse the repository at this point in the history
Added retry to networking setup
  • Loading branch information
geerlingguy committed Apr 20, 2023
2 parents 4a4c88b + 270d38e commit fc69029
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/control-plane-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,24 @@
register: flannel_result
changed_when: "'created' in flannel_result.stdout"
when: kubernetes_pod_network.cni == 'flannel'
retries: 3
delay: 5

- name: Configure Calico networking.
command: "kubectl apply -f {{ kubernetes_calico_manifest_file }}"
register: calico_result
changed_when: "'created' in calico_result.stdout"
when: kubernetes_pod_network.cni == 'calico'
retries: 3
delay: 5

- name: Get Kubernetes version for Weave installation.
shell: kubectl version | base64 | tr -d '\n'
changed_when: false
register: kubectl_version
when: kubernetes_pod_network.cni == 'weave'
retries: 3
delay: 5

- name: Configure Weave networking.
command: "{{ item }}"
Expand Down

0 comments on commit fc69029

Please sign in to comment.