Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Sandbox config - rlimit #515

Closed
aaronchar opened this issue Jan 2, 2018 · 5 comments
Closed

Sandbox config - rlimit #515

aaronchar opened this issue Jan 2, 2018 · 5 comments

Comments

@aaronchar
Copy link

I am currently in the midst of configuring a cluster with cri-contianerd and I am struggling with the default rlimits that are passed down.

 "rlimits": [
          {
            "type": "RLIMIT_NOFILE",
            "hard": 1024,
            "soft": 1024
          }
     ],

I am wondering if there is a method to configure the rlimits.

Thanks

@Random-Liu
Copy link
Member

Random-Liu commented Jan 2, 2018

@DefunctExodus Thanks for reporting this issue!

I think the problem is that:

Kubernetes doesn't have rlimit support today kubernetes/kubernetes#3595, so it's using the Docker default. We should avoid regression for user switching from Docker to containerd.

@crosbymichael Do you think we should remove this from containerd default, or should cri-containerd do that? Maybe cri-containerd should just use docker/oci.DefaultLinuxSpec()?

@Random-Liu Random-Liu added this to the v1.0.0-rc.0 milestone Jan 2, 2018
@Random-Liu
Copy link
Member

@DefunctExodus I discussed with @crosbymichael. To avoid regression, we'll remove the rlimit from the default spec for now.

However, please note that it means all your processes will inherit the limit from containerd. https://github.com/kubernetes-incubator/cri-containerd/blob/master/contrib/systemd-units/containerd.service#L14-L18
This is also the case for the Kubernetes Docker integration today.

@mikebrow
Copy link
Member

mikebrow commented Jan 2, 2018

So really two issues, one is the regression when moving from cri docker, the other is the CRI issue for specifying OCI runtime spec rlimits per pod/containerd.

@aaronchar
Copy link
Author

@Random-Liu

Thanks for looking into this so quickly, that fix sounds just fine.

@Random-Liu
Copy link
Member

@mikebrow Yeah, the rlimit issue for Kubernetes is tracked in kubernetes/kubernetes#3595.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants