{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/67371","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/67371/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/67371/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/67371/events","html_url":"https://github.com/kubernetes/kubernetes/issues/67371","id":350319425,"node_id":"MDU6SXNzdWUzNTAzMTk0MjU=","number":67371,"title":"kubernetes resources reservation(cpu hard limit) ","user":{"login":"admssa","id":16893704,"node_id":"MDQ6VXNlcjE2ODkzNzA0","avatar_url":"https://avatars2.githubusercontent.com/u/16893704?v=4","gravatar_id":"","url":"https://api.github.com/users/admssa","html_url":"https://github.com/admssa","followers_url":"https://api.github.com/users/admssa/followers","following_url":"https://api.github.com/users/admssa/following{/other_user}","gists_url":"https://api.github.com/users/admssa/gists{/gist_id}","starred_url":"https://api.github.com/users/admssa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admssa/subscriptions","organizations_url":"https://api.github.com/users/admssa/orgs","repos_url":"https://api.github.com/users/admssa/repos","events_url":"https://api.github.com/users/admssa/events{/privacy}","received_events_url":"https://api.github.com/users/admssa/received_events","type":"User","site_admin":false},"labels":[{"id":617149945,"node_id":"MDU6TGFiZWw2MTcxNDk5NDU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-sig","name":"needs-sig","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-14T07:57:18Z","updated_at":"2018-08-14T07:57:18Z","closed_at":null,"author_association":"NONE","body":" /kind bug\r\n\r\n\r\n\r\n**What happened**:\r\n I  have ran kubelet with parameters:\r\n```\r\n--enforce-node-allocatable=pods \\\r\n--kube-reserved=cpu=6400m,memory=98358Mi,ephemeral-storage=5Gi\r\n```\r\ngot limit for kubepods memmory: \r\n```\r\ncat /sys/fs/cgroup/memory/kubepods/memory.limit_in_bytes\r\n412547018752\r\n```\r\ngot soft cpu limit:\r\n```\r\ncat /sys/fs/cgroup/cpu/kubepods/cpu.shares\r\n58982\r\n```\r\ncfs quota haven't changed:\r\n```\r\n cat /sys/fs/cgroup/cpu/kubepods/cpu.cfs_quota_us\r\n-1\r\n```\r\nallocateble has changed:\r\n```\r\nCapacity:\r\n cpu:                64\r\n ephemeral-storage:  2064114848Ki\r\n memory:             503596540Ki\r\n pods:               500\r\nAllocatable:\r\n cpu:                57600m\r\n ephemeral-storage:  1896919531648\r\n memory:             402775548Ki\r\n pods:               500\r\n```\r\n**What you expected to happen**:\r\nI expectetd i will get cpu hard limit for kubepods cgroup\r\n\r\nas it works for pods, for example:\r\n```\r\ncat /sys/fs/cgroup/cpu/kubepods/podb0085a01-9ed3-11e8-90bc-12642777bb76/cpu.cfs_quota_us\r\n200000\r\n```\r\nIs it possible to use hard linit ? How exectly I can do this ?\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n  You can run kubelet with parameters above \r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n1.8.5\r\n- Cloud provider or hardware configuration:\r\nAWS, but I'm not using cloud-provider flag\r\n- OS (e.g. from /etc/os-release):\r\n16.04.5 LTS (Xenial Xerus)\r\n- Kernel (e.g. `uname -a`):\r\n4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n- Install tools:\r\nansible\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/412787141","html_url":"https://github.com/kubernetes/kubernetes/issues/67371#issuecomment-412787141","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/67371","id":412787141,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjc4NzE0MQ==","user":{"login":"k8s-ci-robot","id":20407524,"node_id":"MDQ6VXNlcjIwNDA3NTI0","avatar_url":"https://avatars0.githubusercontent.com/u/20407524?v=4","gravatar_id":"","url":"https://api.github.com/users/k8s-ci-robot","html_url":"https://github.com/k8s-ci-robot","followers_url":"https://api.github.com/users/k8s-ci-robot/followers","following_url":"https://api.github.com/users/k8s-ci-robot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-ci-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-ci-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-ci-robot/subscriptions","organizations_url":"https://api.github.com/users/k8s-ci-robot/orgs","repos_url":"https://api.github.com/users/k8s-ci-robot/repos","events_url":"https://api.github.com/users/k8s-ci-robot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-ci-robot/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T07:57:18Z","updated_at":"2018-08-14T07:57:18Z","author_association":"COLLABORATOR","body":"@admssa: There are no sig labels on this issue. Please add a sig label.\n\n<details>\n\nA sig label can be added by either:\n\n1. mentioning a sig: `@kubernetes/sig-<group-name>-<group-suffix>`\n    e.g., `@kubernetes/sig-contributor-experience-<group-suffix>` to notify the contributor experience sig, OR\n\n2. specifying the label manually: `/sig <group-name>`\n    e.g., `/sig scalability` to apply the `sig/scalability` label\n\nNote: Method 1 will trigger an email to the group. See the [group list](https://git.k8s.io/community/sig-list.md).\nThe `<group-suffix>` in method 1 has to be replaced with one of these: _**bugs, feature-requests, pr-reviews, test-failures, proposals**_\n\nInstructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.\n</details>"}}
{"actor":{"display_login":"k8s-ci-robot"}}