restart kubelet service when kube-config.yml is changed (#5402)

* fix(kubelet): exec notify restart kubelet service when kube-config.yml changed

* Revert "refactor(kubelet handler): change task name("reload kubelet") this is misleading"

This reverts commit 8f5d29560802c7c997293adb1ce9f84d3b20b6cb.

* fix(handlers,kubelet): setting right notify task name
This commit is contained in:
404notfoundhard 2020-05-20 00:13:37 +07:00 committed by GitHub
parent 35ad57674e
commit d036a04d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -3,13 +3,13 @@
command: /bin/true
notify:
- Kubelet | reload systemd
- Kubelet | reload kubelet
- Kubelet | restart kubelet
- name: Kubelet | reload systemd
systemd:
daemon_reload: true
- name: Kubelet | reload kubelet
- name: Kubelet | restart kubelet
service:
name: kubelet
state: restarted

View file

@ -31,6 +31,7 @@
template:
src: "kubelet-config.{{ kubeletConfig_api_version }}.yaml.j2"
dest: "{{ kube_config_dir }}/kubelet-config.yaml"
notify: Kubelet | restart kubelet
tags:
- kubelet
- kubeadm
@ -55,3 +56,4 @@
state: started
tags:
- kubelet
notify: Kubelet | restart kubelet