Skip to content

Commit dac8e1f

Browse files
authored
Merge pull request aws-samples#552 from aws-samples/geremyCohen-oom-detail-473
Update readme.adoc
2 parents e9437ca + d91196a commit dac8e1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

01-path-basics/103-kubernetes-concepts/readme.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ Watch the status of the Pod:
311311

312312
`OOMKilled` shows that the container was terminated because it ran out of memory.
313313

314+
To correct this, we'll need to re-create the pod with higher memory limits.
315+
316+
Although it may be instinctive to simply adjust the memory limit in the existing pod definition and re-apply it, Kubernetes does not currently support changing resource limits on running pods, so we'll need to first delete the existing pod, then recreate it.
317+
314318
In `pod-resources2.yaml`, confirm that the value of `spec.containers[].resources.limits.memory` is `300Mi`. Delete the existing Pod, and create a new one:
315319

316320
$ kubectl delete -f pod-resources1.yaml
@@ -331,7 +335,7 @@ Get more details about the resources allocated to the Pod:
331335

332336
=== Quality of service
333337

334-
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.
338+
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.
335339

336340
Kubernetes assigns one of the QoS classes to the Pod:
337341

0 commit comments

Comments
 (0)