2016-02-10 00:16:16 +08:00
|
|
|
---
|
2018-01-29 19:37:48 +08:00
|
|
|
- import_tasks: seed.yml
|
2017-07-27 00:09:34 +08:00
|
|
|
when: weave_mode_seed
|
|
|
|
|
2018-01-24 16:43:06 +08:00
|
|
|
- name: template weavenet conflist
|
|
|
|
template:
|
2018-03-28 11:16:42 +08:00
|
|
|
src: 00-weave.conflist.j2
|
2018-03-13 14:28:49 +08:00
|
|
|
dest: /etc/cni/net.d/00-weave.conflist
|
|
|
|
owner: kube
|
2018-01-24 16:43:06 +08:00
|
|
|
|
2016-09-26 17:02:19 +08:00
|
|
|
- name: Weave | Copy cni plugins from hyperkube
|
2016-12-23 22:44:44 +08:00
|
|
|
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/"
|
2016-09-26 17:02:19 +08:00
|
|
|
register: cni_task_result
|
|
|
|
until: cni_task_result.rc == 0
|
|
|
|
retries: 4
|
|
|
|
delay: "{{ retry_stagger | random + 3 }}"
|
|
|
|
changed_when: false
|
2017-10-05 15:43:04 +08:00
|
|
|
tags:
|
|
|
|
- hyperkube
|
|
|
|
- upgrade
|
2016-09-26 17:02:19 +08:00
|
|
|
|
2017-01-31 23:47:27 +08:00
|
|
|
- name: Weave | Create weave-net manifest
|
2016-02-10 00:16:16 +08:00
|
|
|
template:
|
2017-01-31 23:47:27 +08:00
|
|
|
src: weave-net.yml.j2
|
|
|
|
dest: "{{ kube_config_dir }}/weave-net.yml"
|
2018-02-22 04:13:46 +08:00
|
|
|
mode: 0640
|
2017-01-10 22:47:39 +08:00
|
|
|
register: weave_manifest
|