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
Add startup resource requirements #83111
Comments
/sig apps |
/cc |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Would running sidecar container which would do |
@povils thank you for your response! I think with the solution you have provided it is possible to ensure resources, but my point is that it would be nice to free resources that are needed only during the startup. Sidecar container will not solve this problem because after heavy startup operations k8s still keeps resources requests reserved. Please try to reread my initial message, and let me know if it does not help. Maybe I need to reformulate/rewrite my point to be more clear. |
/assign @kow3ns |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
I think this would be a fantastic feature, as we ourselves have fair number of apps like this. The only caveat is that if the container within the pod ever crashes, it may not be able to restart as normal and would probably instead need to be rescheduled onto a new node. In the common case of a pod managed by a controller of some sort this wouldn't be that big of a deal, but in the case of a "bare pod" declared directly via e.g. |
@philomory Could you expand on the issue you're displaying? |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What would you like to be added:
I would like startup resources requirements to be added. Now we have
request
andlimits
and I want something likestartup-request
for CPU and RAM.Why is this needed:
Some applications use a lot of RAM and CPU during the startup and use not much while running. Now, such applications need to require high
requests
to be able to started. And when app is running and uses few resources it blocks unused resources so that other applications cannot use it.For example, there is an app which requires 1 GB RAM and 1 CPU during the startup. And when it finished all preparations and started to work in normal mode it requires only 200 MB RAM and 200m CPU. Now, to make it deployable to k8s we need to set resource requests as 1 GB for RAM and 1 core for CPU which is honest. But when app is running it uses only fifth part of requested resources and other applications can not claim to use these resources.
What I am suggesting for this cases is to introduce
startup-request
which will be actual untilstartupProbe
(introduced in 1.16) returnsOK
. So, when app finished startup, k8s frees unnecessary resources (making them available for other apps) and application left only with resources specified inrequest
sectionThe text was updated successfully, but these errors were encountered: