I want to deploy some java (Spring Boot, MicroProfile, ...) apps to k8s. I want to define CPU requests and limits for those apps. The problem with limit is, that the apps need very long (30-90 seconds) time depending on the limit (around 300-500m). This is pretty/too long. The apps also don't need that much CPU. In idle they are <10m. And with load <100m.
How do you solve this kind of issues?
Is there something planed like the startup-probes for limits? (https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes)
Thanks
P.S. I'm aware of frameworks like quarkus or micronaut. But we got some legacy apps here we want to migrate to k8s.