Fix weave on RHEL deployment
Reduce retry delay checking weave Always load br_netfilter module
This commit is contained in:
parent
a5876a1ac8
commit
446a4bbdc8
2 changed files with 6 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
return_content: yes
|
||||
register: weave_status
|
||||
retries: 180
|
||||
delay: 10
|
||||
delay: 5
|
||||
until: "{{ weave_status.status == 200 and
|
||||
'Status: ready' in weave_status.content }}"
|
||||
when: inventory_hostname == groups['kube-master'][0]
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
- include: pre-upgrade.yml
|
||||
|
||||
- name: Weave | enable br_netfilter module
|
||||
modprobe:
|
||||
name: br_netfilter
|
||||
state: present
|
||||
|
||||
- name: Weave | Copy cni plugins from hyperkube
|
||||
command: "{{ docker_bin_dir }}/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
|
||||
register: cni_task_result
|
||||
|
|
Loading…
Reference in a new issue