-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubelet: Fix semantics for *ReservedCgroup and enforceNodeAllocatable
* Setting the {kube,system}ReservedCgroup does not make the kubelet enforce the limits, adding the corresponding entry in enforceNodeAllocatable does. - more explicit variable names - add a warning for enforcing kube and system limits. * Streamline resource kubelet resource reservation: - remove "master" variants: those should be handled by group_vars - Use emtpy defaults to leave them to kubelet default configuration * Exercise the new semantics in CI.
- Loading branch information
Showing
5 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
kube_slice_cgroup: "/{{ kube_slice.split('-') | join('.slice/') }}/" | ||
system_slice_cgroup: "/{{ system_slice.split('-') | join('.slice/') }}/" | ||
enforce_node_allocatable_stub: | ||
pods: "{{ enforce_allocatable_pods }}" | ||
kube-reserved: "{{ enforce_allocatable_kube_reserved }}" | ||
system-reserved: "{{ enforce_allocatable_system_reserved }}" | ||
enforce_node_allocatable: "{{ enforce_node_allocatable_stub | dict2items | selectattr('value') | map(attribute='key') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters