Skip to content

Commit

Permalink
Set SystemdCgroup = true for containerd v2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaian committed Jan 6, 2025
1 parent fba3798 commit 037b6e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/container-engine/containerd/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ containerd_runc_runtime:
root: ""
base_runtime_spec: cri-base.json
options:
systemdCgroup: "{{ containerd_use_systemd_cgroup | ternary('true', 'false') }}"
systemdCgroup: >
{% if containerd_version is version('2.0.0', '<') %}
false
{% else %}
{{ containerd_use_systemd_cgroup | ternary('true', 'false') }}
{% endif %}
binaryName: "{{ bin_dir }}/runc"

containerd_additional_runtimes: []
Expand Down

0 comments on commit 037b6e9

Please sign in to comment.