set cgroup slice for crio

This commit is contained in:
shelmingsong 2022-08-24 20:26:24 +08:00
parent d8e0905254
commit 9d7077906c

View file

@ -113,8 +113,12 @@ conmon = "{{ crio_conmon }}"
{% if crio_cgroup_manager == "cgroupfs" %} {% if crio_cgroup_manager == "cgroupfs" %}
conmon_cgroup = "pod" conmon_cgroup = "pod"
{% else %} {% else %}
{% if kube_reserved is defined and kube_reserved|bool %}
conmon_cgroup = "{{ kube_reserved_cgroups_for_service_slice }}
{% else %}
conmon_cgroup = "system.slice" conmon_cgroup = "system.slice"
{% endif %} {% endif %}
{% endif %}
# Environment variable list for the conmon process, used for passing necessary # Environment variable list for the conmon process, used for passing necessary
# environment variables to conmon or the runtime. # environment variables to conmon or the runtime.