-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Explain why we can't dynamically update resource values on a running pod #473
Conversation
Adding some explanation on why the user can't simply update the memory resources for the existing pod.
Update readme.adoc
Update readme.adoc
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.
Not sure whether we should reference the issue from kubernetes/kubernetes.
@@ -339,6 +339,10 @@ Watch the status of the Pod: | |||
|
|||
`OOMKilled` shows that the container was terminated because it ran out of memory. | |||
|
|||
To correct this, we'll need to re-create the pod with higher memory limits. | |||
|
|||
Although it may be instinctive to simply adjust the memory limit in the existing pod definition and re-apply it, https://github.com/kubernetes/kubernetes/issues/39060#issuecomment-268449812[Kubernetes does not currently support changing resource limits on running pods], so we'll need to first delete the existing pod, then recreate it. |
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.
Is it necessary to reference the issue? Can we instead highlight that Kubernetes does not support in-place adjustments to pod resources?
If this will be fixed, then I can see tracking the issue. However, if it's not on the roadmap, then we should leave the issue out.
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.
I was just being verbose :) No need to include the link reference.
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.
Can you fix and send a new commit?
@@ -359,7 +363,7 @@ Get more details about the resources allocated to the Pod: | |||
|
|||
=== Quality of service | |||
|
|||
Kubernetes opportunistically scavenge the difference between request and limit if they are not used by the Containers. This allows Kubernetes to oversubscribe nodes, which increases utilization, while at the same time maintaining resource guarantees for the containers that need guarantees. | |||
Kubernetes opportunistically scavenges the difference between request and limit if they are not used by the Containers. This allows Kubernetes to oversubscribe nodes, which increases utilization, while at the same time maintaining resource guarantees for the containers that need guarantees. |
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.
👍 Looks good.
Can you please fix conflicts and resubmit PR? |
@buzzsurfr new issue and PR available at #551 and #552 |
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.