-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Implement resource constraints on nodes #896
Conversation
/assign @BenTheElder |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aojea The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
First of all: does this actually work? Did you try deploying a resource intensive pod? |
/hold |
6e56fd1
to
58b6211
Compare
/hold cancel |
🤔 |
/test pull-kind-e2e-kubernetes |
let's take another look at this for v1alpha5 still need to see how this behaves on eg docker for mac, dig into the details more. |
cc @amwat |
547f356
to
8bf09c9
Compare
Thank you @aojea is this going to be included in the next release? |
/lifecycle frozen we originally only added multi-node as a way to test rolling update and taints in kubernetes. they're not meant to be an effective means of isolation. all of the nodes share one physical host and kernel. |
@aojea: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This feature seems to much work for "faking" a VM, people can (??) use lxcfs https://linuxcontainers.org/lxcfs/introduction/ or just VMs, but adding this logic to kind does not make sense to me after spending some time with it.... better integrating firecracker or one runtime that provides the isolation |
kind using docker construct virtual Node, why not using docker cmd options reserve resources ? add same option |
that is what this does, however, the kubelet on the kind nodes see ALL the host resources, not the containers resources, see #896 (comment) |
👍 ,thx |
Despite the fact that kubelet sees all the resources, this solution suits my use case, because I want to simulate nodes with limited capacities and I know in advance the resources requested by my pods. I would like to ask you how I could use it? |
Allow setting CPU and Memory constraints on kind nodes.
Example:
from https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/#specify-a-memory-request-and-a-memory-limit
Create a pod that start to consume more memory that the one assigned to the node
You can verify, if you are using the docker provider, using
docker stats
that the node memory is being limited:and that the memory inside the node is not growing beyond the limit
Fixes #877