Update 'install_kubetools.yml'
This commit is contained in:
@@ -46,6 +46,14 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- "kubelet"
|
- "kubelet"
|
||||||
- "kubeadm"
|
- "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
|
- name: Start kubelet
|
||||||
service:
|
service:
|
||||||
name: kubelet
|
name: kubelet
|
||||||
|
|||||||
Reference in New Issue
Block a user