kubespray/roles/network_plugin/weave/tasks/main.yml

28 lines
756 B
YAML
Raw Normal View History

2016-02-10 00:16:16 +08:00
---
- import_tasks: seed.yml
when: weave_mode_seed
2018-01-24 16:43:06 +08:00
- name: template weavenet conflist
template:
src: weavenet.conflist.j2
dest: /etc/cni/net.d/00-weave.conflist
owner: kube
2018-01-24 16:43:06 +08:00
- 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
until: cni_task_result.rc == 0
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false
tags:
- hyperkube
- upgrade
- name: Weave | Create weave-net manifest
2016-02-10 00:16:16 +08:00
template:
src: weave-net.yml.j2
dest: "{{ kube_config_dir }}/weave-net.yml"
mode: 0640
2017-01-10 22:47:39 +08:00
register: weave_manifest