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
|
|
|
|
|
|
|
- name: kube-router | 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 -prf /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: kube-router | Create manifest
|
|
|
|
template:
|
|
|
|
src: kube-router.yml.j2
|
2018-10-21 15:35:52 +08:00
|
|
|
dest: "{{ kube_config_dir }}/kube-router.yml"
|