Skip to content

Commit

Permalink
configure crio to use kube reserved cgroups (kubernetes-sigs#11028)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-peter authored and Rickkwa committed Jun 26, 2024
1 parent 4eb6fa5 commit 86e07c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions roles/container-engine/cri-o/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86e07c1

Please sign in to comment.