Merge pull request #32497 from my-git9/assign-memory-resource

[zh] Update assign-memory-resource.md
This commit is contained in:
Kubernetes Prow Robot
2022-03-25 05:59:58 -07:00
committed by GitHub
@@ -149,10 +149,10 @@ and a memory limit of 200 MiB.
```yaml
...
resources:
limits:
memory: 200Mi
requests:
memory: 100Mi
limits:
memory: 200Mi
...
```
@@ -263,7 +263,7 @@ The output shows that the Container was killed because it is out of memory (OOM)
```shell
lastState:
terminated:
containerID: docker://65183c1877aaec2e8427bc95609cc52677a454b56fcb24340dbd22917c23b10f
containerID: 65183c1877aaec2e8427bc95609cc52677a454b56fcb24340dbd22917c23b10f
exitCode: 137
finishedAt: 2017-06-20T20:52:19Z
reason: OOMKilled