configure crio to use kube reserved cgroups (#11028)
parent
c6758fe544
commit
9ef6678b7e
|
@ -90,6 +90,20 @@
|
|||
remote_src: true
|
||||
notify: Restart crio
|
||||
|
||||
- name: Cri-o | configure crio to use kube reserved cgroups
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/systemd/system/crio.service.d/00-slice.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
content: |
|
||||
[Service]
|
||||
Slice={{ kube_reserved_cgroups_for_service_slice }}
|
||||
notify: Restart crio
|
||||
when:
|
||||
- kube_reserved is defined and kube_reserved is true
|
||||
- kube_reserved_cgroups_for_service_slice is defined
|
||||
|
||||
- name: Cri-o | update the bin dir for crio.service file
|
||||
replace:
|
||||
dest: /etc/systemd/system/crio.service
|
||||
|
|
Loading…
Reference in New Issue