From 1796d8bbd7c5f784da2f8ceed6217282fe33ad61 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Sat, 4 May 2024 09:24:16 +0000 Subject: [PATCH] Update 'install_kubetools.yml' --- install_kubetools.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install_kubetools.yml b/install_kubetools.yml index ddd13af..430dfe0 100644 --- a/install_kubetools.yml +++ b/install_kubetools.yml @@ -46,6 +46,14 @@ with_items: - "kubelet" - "kubeadm" + - name: ensure /etc/default/kubelet exists + file: + path: /etc/default/kubelet exists + state: file + - name: Set containerd in extraargs + blockinfile: + dest=/etc/default/kubelet + block: "KUBELET_EXTRA_ARGS=\"--container-runtime-endpoint=unix:///run/containerd/containerd.sock\"" - name: Start kubelet service: name: kubelet