Skip to content

Commit b1cbb92

Browse files
committed
[zh] Update quality-service-pod.md
Signed-off-by: xin.li <[email protected]>
1 parent ee11573 commit b1cbb92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/zh/docs/tasks/configure-pod-container/quality-service-pod.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ status:
131131
qosClass: Guaranteed
132132
```
133133
134+
{{< note >}}
134135
<!--
135136
If a Container specifies its own memory limit, but does not specify a memory request, Kubernetes
136137
automatically assigns a memory request that matches the limit. Similarly, if a Container specifies its own
137138
CPU limit, but does not specify a CPU request, Kubernetes automatically assigns a CPU request that matches
138139
the limit.
139140
-->
140-
{{< note >}}
141141
如果容器指定了自己的内存限制,但没有指定内存请求,Kubernetes 会自动为它指定与内存限制匹配的内存请求。
142142
同样,如果容器指定了自己的 CPU 限制,但没有指定 CPU 请求,Kubernetes 会自动为它指定与 CPU 限制匹配的 CPU 请求。
143143
{{< /note >}}
@@ -158,7 +158,7 @@ kubectl delete pod qos-demo --namespace=qos-example
158158
A Pod is given a QoS class of Burstable if:
159159
160160
* The Pod does not meet the criteria for QoS class Guaranteed.
161-
* At least one Container in the Pod has a memory or CPU request.
161+
* At least one Container in the Pod has a memory or CPU request or limit.
162162
163163
Here is the configuration file for a Pod that has one Container. The Container has a memory limit of 200 MiB
164164
and a memory request of 100 MiB.
@@ -168,7 +168,7 @@ and a memory request of 100 MiB.
168168
如果满足下面条件,将会指定 Pod 的 QoS 类为 Burstable:
169169

170170
* Pod 不符合 Guaranteed QoS 类的标准。
171-
* Pod 中至少一个容器具有内存或 CPU 请求
171+
* Pod 中至少一个容器具有内存或 CPU 的请求或限制
172172

173173
下面是包含一个容器的 Pod 配置文件。
174174
容器设置了内存限制 200 MiB 和内存请求 100 MiB。

0 commit comments

Comments
 (0)