0

I'd like to change my pod's CPU request value after a pod has started. Is this possible?

In our shared kubernetes system there is a requirement that our actual resource usage be "reasonably close" to the resource request value in the yaml, otherwise we limit a users ability to deploy further jobs until they correct their usage requests.

Therefore it's valuable to me to be able to adjust the resource request value after the job started, if that's possible. Presumably such a request would only succeed if the node has the resources (CPU, Memory) available.

I noticed there's a kubectl patch option to made dynamic updates, but it's not clear that it could accomplish what I'm looking for.

1 Answer 1

1

LimitRange for the rescue: by setting both Max limits and LimitRequestRatio for pods users must set limits that are lower than Max or request*ratio or apiserver would return 403 Forbidden.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.