Install calico-plugin before running calico

This commit is contained in:
ant31
2015-12-28 22:02:30 +01:00
parent 5c15d14f12
commit e378f4fb14
4 changed files with 22 additions and 2 deletions

View File

@@ -11,3 +11,16 @@
mode=0755
notify:
- restart kubelet
- name: Calico-plugin | Directory
file: path=/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/ state=directory
when: kube_network_plugin == "calico"
- name: Calico-plugin | Binary
copy:
src={{ local_release_dir }}/calico/bin/calico
dest=/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calico
mode=0755
when: kube_network_plugin == "calico"
notify:
- restart kubelet