Merge pull request #144 from rfranks-securenet/retry-networking-setup

Added retry to networking setup
This commit is contained in:
Jeff Geerling 2023-04-20 17:10:51 -05:00 committed by GitHub
commit fc69029f16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}"