2015-10-03 20:19:50 +00:00
|
|
|
---
|
|
|
|
- name: Write kubelet systemd init file
|
2015-12-11 10:32:13 +00:00
|
|
|
template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes
|
|
|
|
notify: restart kubelet
|
2015-10-03 20:19:50 +00:00
|
|
|
|
2015-12-11 10:32:13 +00:00
|
|
|
- name: Install kubelet binary
|
2015-11-20 10:18:37 +00:00
|
|
|
copy:
|
2015-12-11 10:32:13 +00:00
|
|
|
src={{ local_release_dir }}/kubernetes/bin/kubelet
|
2015-10-03 20:19:50 +00:00
|
|
|
dest={{ bin_dir }}
|
|
|
|
owner=kube
|
2015-12-17 21:46:50 +00:00
|
|
|
mode=0755
|
2015-10-03 20:19:50 +00:00
|
|
|
notify:
|
2015-12-11 10:32:13 +00:00
|
|
|
- restart kubelet
|
2015-12-28 21:02:30 +00:00
|
|
|
|
|
|
|
- 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
|