Add wait for etcd for flannel network plugin
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
1938c96239
commit
6467451a86
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,14 @@
|
|||
dest: /etc/kubernetes/manifests/flannel-pod.manifest
|
||||
notify: delete default docker bridge
|
||||
|
||||
- name: Flannel | wait for etcd
|
||||
uri: url=http://localhost:2379/health
|
||||
register: result
|
||||
until: result.status == 200
|
||||
retries: 10
|
||||
delay: 5
|
||||
when: inventory_hostname in groups['kube-master']
|
||||
|
||||
- name: Flannel | Wait for flannel subnet.env file presence
|
||||
wait_for:
|
||||
path: /run/flannel/subnet.env
|
||||
|
|
Loading…
Reference in a new issue