KEP-5714: CgroupNamespacesSupport: correct POD namespace mode to CONTAINER #6462
Note that this changes with KEP-5474 and the cgroup mount mode field, which lets an unprivileged container mount cgroupfs as read-write
Added a note about KEP-5474
@kubernetes/sig-node-leads
Could you merge this?
The corresponding CRI PR is already merged:
/lgtm
/assign @dchen1107
Approved these changes.
This should be ReadWrite here and on line 337, to match KEP-5474.
New changes are detected. LGTM label has been removed.
fixed
Approved these changes.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: <a href="https://github.com/kubernetes/enhancements/pull/6462#" title="Author self-approved">AkihiroSuda</a>, <a href="https://github.com/kubernetes/enhancements/pull/6462#pullrequestreview-6042192639" title="Approved">chrishenzie</a>
Once this PR has been reviewed and has the lgtm label, please ask for approval from dchen1107. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":["dchen1107"]} -->
@kubernetes/sig-node-leads PTAL. The implementation is already merged.
chrishenzie
AkihiroSuda
<!--
Please use the following format when naming your PR
< Issue Number >:< Issue Description >
e.g. KEP-000: adding beta graduation criteria
Avoid using phrases like
fixes #NNNNin the descriptionunless the pull request is to change the KEP status to
implemented or KEP has been deprecated.
-->
<!-- short description of work done in PR e.g. updating milestone, adding new KEP, adding test requirements… -->
PODnamespace mode toCONTAINER<!-- link to the k/enhancements issue -->
<!-- other comments or additional information -->
It doesn't make much sense to unshare a cgroup namespace per a pod, as each of containers in a pod has their own cgroup.
Actually, containerd and CRI-O have been unsharing cgroup namespaces per a container, not per a pod:
createSandboxContainerin CRI-O is called per a container, not per a pod)