58f48500b1
* Add CI_TEST_VARS to tests * Update flannel to 0.12.0 (with new manifests) and disable tx/rx offloading in networking test
27 lines
741 B
YAML
27 lines
741 B
YAML
---
|
|
- name: Flannel | Create Flannel manifests
|
|
template:
|
|
src: "{{ item.file }}.j2"
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
|
with_items:
|
|
- {name: flannel, file: cni-flannel-rbac.yml, type: sa}
|
|
- {name: kube-flannel, file: cni-flannel.yml, type: ds}
|
|
register: flannel_node_manifests
|
|
when:
|
|
- inventory_hostname in groups['kube-master']
|
|
|
|
- name: Flannel | Set CNI directory permissions
|
|
file:
|
|
path: /opt/cni/bin
|
|
state: directory
|
|
owner: kube
|
|
recurse: true
|
|
mode: 0755
|
|
register: cni_bin_dir
|
|
|
|
- name: Flannel | Copy CNI plugins
|
|
unarchive:
|
|
src: "{{ local_release_dir }}/cni-plugins-linux-{{ image_arch }}-{{ cni_version }}.tgz"
|
|
dest: "/opt/cni/bin"
|
|
mode: 0755
|
|
remote_src: yes
|