Browse Source

Restart kubelet if launcher changed

Fixes #409
pull/418/head
Matthew Mosesohn 8 years ago
parent
commit
6f07da9f41
2 changed files with 1 additions and 7 deletions
  1. 3
      roles/kubernetes/node/tasks/install.yml
  2. 5
      roles/kubernetes/node/tasks/main.yml

3
roles/kubernetes/node/tasks/install.yml

@ -16,5 +16,4 @@
- name: install | Install kubelet launch script
template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner=kube mode=0755 backup=yes
register: kubelet_launcher
changed_when: false
notify: restart kubelet

5
roles/kubernetes/node/tasks/main.yml

@ -23,11 +23,6 @@
src: manifests/kube-proxy.manifest.j2
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
- meta: flush_handlers

Loading…
Cancel
Save