set cgroup slice for crio
This commit is contained in:
parent
d8e0905254
commit
9d7077906c
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue