-
Notifications
You must be signed in to change notification settings - Fork 328
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
fix(helm): set CP memory limits, by default equal to memory request, set CP CPU requests #6127
Conversation
0144f20
to
5046e38
Compare
app/kumactl/cmd/install/testdata/install-cp-helm/securityContext.golden.yaml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like we need to do something for limits to make it simpler and for keeping our helm version in sync with our dependencies
Make what exactly simpler?
I'll create an issue: #6165 |
The complex ifs. Should we just have a sensible default in resources:
requests:
cpu: 500m
memory: 256Mi
limits:
memory: 256Mi We're trying to be clever with global and zone difference which actually doesn't make a lot of sense anyway. EDIT: this can be a separate issue btw :) |
/golden_files |
fd41d49
to
9bcef71
Compare
9bcef71
to
e7c1fbe
Compare
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>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
e7c1fbe
to
7685ce6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM that makes things a lot clearer I find! We should also make these configurable for egress. They are currently hardcoded. Opened: #6252
See https://web.archive.org/web/20220805232857/https://home.robusta.dev/blog/stop-using-cpu-limits/ and https://web.archive.org/web/20220720151847/https://github.com/robusta-dev/alert-explanations/wiki/CPUThrottlingHigh-(Prometheus-Alert)
Generally we shouldn't be setting CPU limits on Pods.
Best practice on memory is request=limit
Blocked on #6121
Reference stackrox/kube-linter#459
Checklist prior to review
syscall.Mkfifo
have equivalent implementation on the other OS --UPGRADE.md
? --> Changelog:
entry here or add aci/
label to run fewer/more tests?