blob: 441360f7850f03a78939235c854b3b41efe7890b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: make sure the kubernetes_cri_socket variable is configured correctly
assert:
msg: "The variable kubernetes_cri_socket is not configured correctly. You might need to move your host to the group kubernetes-cluster or standalone-kubelet!"
that:
- kubernetes_cri_socket == "unix:///run/containerd/containerd.sock"
- name: switch to systemd cgroup driver
set_fact:
containerd_config_override:
plugins:
"io.containerd.grpc.v1.cri":
containerd:
runtimes:
runc:
options:
SystemdCgroup: true
- name: override mandatory settings in containerd_config
set_fact:
containerd_config: "{{ containerd_config | default({}) | combine(containerd_config_override, recursive=True) }}"
- name: install containerd
include_role:
name: containerd
|