Skip to content
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

Allow setting CPU limit and Mem request / limit for kube API server #10275

Merged

Conversation

rdrgmnzs
Copy link
Contributor

Allow setting CPU limit and Mem request / limit for kube API server.

We had a user overload our API server with a few requests recently, which in turn caused the host to OOM different components causing debugging delays and stability issues. We eventually manually applied CPU & Mem Req/Limit to API server causing the API server pod to OOM instead of host level systems. This caused the cluster to become more stable while we debugged the underlying issue.

This change allows for those setting to be permanently set which would allow for a faster recover if something like this happens again in the future.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 19, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rdrgmnzs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added area/nodeup approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 19, 2020
nodeup/pkg/model/kube_apiserver.go Outdated Show resolved Hide resolved
@rdrgmnzs rdrgmnzs force-pushed the kubeapi-mem-cpu-request-limit branch from faf13ee to da773ba Compare November 23, 2020 18:04
@hakman
Copy link
Member

hakman commented Nov 23, 2020

@rdrgmnzs maybe you want to cherry-pick to 1.19.
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 23, 2020
@rdrgmnzs
Copy link
Contributor Author

@hakman yep, was planning to. :D I'll do it once this gets merged

@hakman
Copy link
Member

hakman commented Nov 23, 2020

/retest

@k8s-ci-robot k8s-ci-robot merged commit e789c24 into kubernetes:master Nov 23, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Nov 23, 2020
k8s-ci-robot added a commit that referenced this pull request Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/api area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants