2018-10-16 22:15:05 +08:00
|
|
|
---
|
2018-10-21 15:35:52 +08:00
|
|
|
- name: kube-router | Create annotations
|
|
|
|
include: annotate.yml
|
|
|
|
tags: annotate
|
2018-10-16 22:15:05 +08:00
|
|
|
|
2019-06-06 19:34:13 +08:00
|
|
|
- name: kube-router | Set cni directory permissions
|
2018-12-03 18:22:17 +08:00
|
|
|
file:
|
|
|
|
path: /opt/cni/bin
|
|
|
|
state: directory
|
|
|
|
owner: kube
|
|
|
|
recurse: true
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: kube-router | Copy cni plugins
|
|
|
|
unarchive:
|
2019-06-14 17:42:23 +08:00
|
|
|
src: "{{ local_release_dir }}/cni-plugins-linux-{{ image_arch }}-{{ cni_version }}.tgz"
|
2018-12-03 18:22:17 +08:00
|
|
|
dest: "/opt/cni/bin"
|
|
|
|
mode: 0755
|
2019-06-06 19:34:13 +08:00
|
|
|
owner: kube
|
2018-12-03 18:22:17 +08:00
|
|
|
remote_src: yes
|
2018-10-16 22:15:05 +08:00
|
|
|
|
|
|
|
- name: kube-router | Create manifest
|
|
|
|
template:
|
|
|
|
src: kube-router.yml.j2
|
2018-12-03 18:22:17 +08:00
|
|
|
dest: "{{ kube_config_dir }}/kube-router.yml"
|