Fix Kubelet and Containerd when using cgroupfs as cgroup driver (#8123)

This commit is contained in:
Pasquale Toscano
2021-11-05 15:59:54 +01:00
committed by GitHub
parent c94291558d
commit 6e5b9e0ebf
8 changed files with 57 additions and 12 deletions

View 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

View File

@@ -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."