diff --git a/roles/kubernetes/node/handlers/main.yml b/roles/kubernetes/node/handlers/main.yml index 732b15082f8fd38f474d1de8908ae86a6d0b466c..512b4e8d40140439a01f6b77de28e2edf9fb9178 100644 --- a/roles/kubernetes/node/handlers/main.yml +++ b/roles/kubernetes/node/handlers/main.yml @@ -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 diff --git a/roles/kubernetes/node/tasks/kubelet.yml b/roles/kubernetes/node/tasks/kubelet.yml index c4cd2d92a45da6c9f11745aab4163764055bdfb1..e72e5e08398bf554cbda1a3b9518c6eec50d2ccd 100644 --- a/roles/kubernetes/node/tasks/kubelet.yml +++ b/roles/kubernetes/node/tasks/kubelet.yml @@ -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