Update 'install_kubetools.yml'

master
alecsandru 9 months ago
parent e18dbfd645
commit c2902fa784
  1. 11
      install_kubetools.yml

@ -56,10 +56,15 @@
with_items:
- "kubelet"
- "kubeadm"
- name: ensure /etc/default/kubelet exists
file:
- name: Check /etc/default/kubelet
stat:
path: /etc/default/kubelet
state: file
register: kubelet_defaults
- name: Create /etc/default/kubelet
copy:
dest: /etc/default/kubelet
content: "KUBELET_EXTRA_ARGS=\"--container-runtime-endpoint=unix:///run/containerd/containerd.sock\""
when: not kubelet_defaults.stat.exists
- name: Set containerd in extraargs
blockinfile:
dest: /etc/default/kubelet

Loading…
Cancel
Save