add retries for calico/canal etcd commands (#2007)

This commit is contained in:
Matthew Mosesohn
2017-11-28 16:39:55 +00:00
committed by GitHub
parent 38e8522cbf
commit ec54b36e05
3 changed files with 14 additions and 0 deletions

View File

@@ -29,6 +29,8 @@
{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} \
set /{{ cluster_name }}/network/config \
'{ "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "{{ flannel_backend_type }}" } }'
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
delegate_to: "{{groups['etcd'][0]}}"
changed_when: false
run_once: true