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:
parent
35ad57674e
commit
d036a04d4d
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue