Skip to content
Snippets Groups Projects
Unverified Commit 9ef6678b authored by peterw's avatar peterw Committed by GitHub
Browse files

configure crio to use kube reserved cgroups (#11028)

parent c6758fe5
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,20 @@ ...@@ -90,6 +90,20 @@
remote_src: true remote_src: true
notify: Restart crio 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 - name: Cri-o | update the bin dir for crio.service file
replace: replace:
dest: /etc/systemd/system/crio.service dest: /etc/systemd/system/crio.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment