mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-18 03:30:07 -03:30
Fix Kubelet and Containerd when using cgroupfs as cgroup driver (#8123)
This commit is contained in:
6
roles/container-engine/containerd/tasks/facts.yml
Normal file
6
roles/container-engine/containerd/tasks/facts.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
- name: set kubelet_config_extra_args options when cgroupfs is used
|
||||
set_fact:
|
||||
containerd_runc_runtime: "{{ containerd_runc_runtime | combine({'options':{'systemCgroup':'false'}}) }}"
|
||||
when: not containerd_use_systemd_cgroup
|
||||
@@ -1,4 +1,8 @@
|
||||
---
|
||||
- import_tasks: facts.yml
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- name: Fail containerd setup if distribution is not supported
|
||||
fail:
|
||||
msg: "{{ ansible_distribution }} is not supported by containerd."
|
||||
|
||||
Reference in New Issue
Block a user