Merge pull request #418 from kubespray/fixkubeletnode
Restart kubelet if launcher changed
This commit is contained in:
commit
1f6dce61ba
2 changed files with 1 additions and 7 deletions
|
@ -16,5 +16,4 @@
|
||||||
|
|
||||||
- name: install | Install kubelet launch script
|
- name: install | Install kubelet launch script
|
||||||
template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner=kube mode=0755 backup=yes
|
template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner=kube mode=0755 backup=yes
|
||||||
register: kubelet_launcher
|
notify: restart kubelet
|
||||||
changed_when: false
|
|
||||||
|
|
|
@ -23,11 +23,6 @@
|
||||||
src: manifests/kube-proxy.manifest.j2
|
src: manifests/kube-proxy.manifest.j2
|
||||||
dest: "{{ kube_manifest_dir }}/kube-proxy.manifest"
|
dest: "{{ kube_manifest_dir }}/kube-proxy.manifest"
|
||||||
|
|
||||||
- name: Restart kubelet if binary changed
|
|
||||||
command: /bin/true
|
|
||||||
notify: restart kubelet
|
|
||||||
when: kubelet_launcher.changed
|
|
||||||
|
|
||||||
# reload-systemd
|
# reload-systemd
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue