-
Notifications
You must be signed in to change notification settings - Fork 239
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
[FEATURE_REQUEST] unset-cpu-requirements should use requirementsType: "request" #459
Labels
Comments
michaelbeaumont
added a commit
to kumahq/kuma
that referenced
this issue
Feb 24, 2023
See stackrox/kube-linter#459 and https://web.archive.org/web/20220805232857/https://home.robusta.dev/blog/stop-using-cpu-limits/ Generally we shouldn't be setting CPU limits on Pods. Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
michaelbeaumont
added a commit
to kumahq/kuma
that referenced
this issue
Feb 24, 2023
See stackrox/kube-linter#459 and https://web.archive.org/web/20220805232857/https://home.robusta.dev/blog/stop-using-cpu-limits/ Generally we shouldn't be setting CPU limits on Pods. Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
6 tasks
michaelbeaumont
added a commit
to kumahq/kuma
that referenced
this issue
Feb 28, 2023
See stackrox/kube-linter#459 and https://web.archive.org/web/20220805232857/https://home.robusta.dev/blog/stop-using-cpu-limits/ Generally we shouldn't be setting CPU limits on Pods. Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
michaelbeaumont
added a commit
to kumahq/kuma
that referenced
this issue
Mar 8, 2023
See stackrox/kube-linter#459 and https://web.archive.org/web/20220805232857/https://home.robusta.dev/blog/stop-using-cpu-limits/ Generally we shouldn't be setting CPU limits on Pods. Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
michaelbeaumont
added a commit
to kumahq/kuma
that referenced
this issue
Mar 8, 2023
See stackrox/kube-linter#459 and https://web.archive.org/web/20220805232857/https://home.robusta.dev/blog/stop-using-cpu-limits/ Generally we shouldn't be setting CPU limits on Pods. Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
I work around this currently with an annotation. Having this merged would be appreciated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem/feature request
The
requirementsType
parameter of the built-inunset-cpu-requirements
check is set toany
which means that workloads need to specify both CPU requests and CPU limits to pass the check.This doesn't seem to match the best practices (according to some sources at least) which suggest that:
I suggest softening the built-in check to require only CPU requests to be set.
Description of the existing behavior vs. expected behavior
The current unset-cpu-requirements check sets
requirementsType
toany
.I am suggesting to change it to
request
.Additional context
Nothing to put here.
The text was updated successfully, but these errors were encountered: