@@ -62,7 +62,7 @@ kubectl create namespace qos-example
62
62
<!--
63
63
## Create a Pod that gets assigned a QoS class of Guaranteed
64
64
65
- For a Pod to be given a QoS class of Guaranteed:
65
+ For a Pod to be given a QoS class of ` Guaranteed` :
66
66
67
67
* Every Container in the Pod must have a memory limit and a memory request.
68
68
* For every Container in the Pod, the memory limit must equal the memory request.
@@ -72,7 +72,7 @@ For a Pod to be given a QoS class of Guaranteed:
72
72
-->
73
73
## 创建一个 QoS 类为 Guaranteed 的 Pod {#create-a-pod-that-gets-assigned-a-qos-class-of-guaranteed}
74
74
75
- 对于 QoS 类为 Guaranteed 的 Pod:
75
+ 对于 QoS 类为 ` Guaranteed ` 的 Pod:
76
76
77
77
* Pod 中的每个容器都必须指定内存限制和内存请求。
78
78
* 对于 Pod 中的每个容器,内存限制必须等于内存请求。
@@ -116,11 +116,11 @@ kubectl get pod qos-demo --namespace=qos-example --output=yaml
116
116
```
117
117
118
118
<!--
119
- The output shows that Kubernetes gave the Pod a QoS class of Guaranteed. The output also
119
+ The output shows that Kubernetes gave the Pod a QoS class of ` Guaranteed` . The output also
120
120
verifies that the Pod Container has a memory request that matches its memory limit, and it has
121
121
a CPU request that matches its CPU limit.
122
122
-->
123
- 结果表明 Kubernetes 为 Pod 配置的 QoS 类为 Guaranteed。
123
+ 结果表明 Kubernetes 为 Pod 配置的 QoS 类为 ` Guaranteed ` 。
124
124
结果也确认了 Pod 容器设置了与内存限制匹配的内存请求,设置了与 CPU 限制匹配的 CPU 请求。
125
125
126
126
``` yaml
@@ -247,7 +247,7 @@ kubectl delete pod qos-demo-2 --namespace=qos-example
247
247
For a Pod to be given a QoS class of `BestEffort`, the Containers in the Pod must not
248
248
have any memory or CPU limits or requests.
249
249
250
- Here is the configuration file for a Pod that has one Container. The Container has no memory or CPU
250
+ Here is a manifest for a Pod that has one Container. The Container has no memory or CPU
251
251
limits or requests:
252
252
-->
253
253
## 创建一个 QoS 类为 BestEffort 的 Pod {#create-a-pod-that-gets-assigned-a-qos-class-of-besteffort}
@@ -308,23 +308,23 @@ kubectl delete pod qos-demo-3 --namespace=qos-example
308
308
<!--
309
309
## Create a Pod that has two Containers
310
310
311
- Here is the configuration file for a Pod that has two Containers. One container specifies a memory
311
+ Here is a manifest for a Pod that has two Containers. One container specifies a memory
312
312
request of 200 MiB. The other Container does not specify any requests or limits.
313
313
-->
314
314
## 创建包含两个容器的 Pod {#create-a-pod-that-has-two-containers}
315
315
316
- 下面是包含两个 Container 的 Pod 配置文件 。一个 Container 指定内存请求为 200 MiB。
316
+ 下面是包含两个 Container 的 Pod 清单 。一个 Container 指定内存请求为 200 MiB。
317
317
另外一个 Container 没有指定任何请求或限制。
318
318
319
319
{{< codenew file="pods/qos/qos-pod-4.yaml" >}}
320
320
321
321
<!--
322
322
Notice that this Pod meets the criteria for QoS class `Burstable`. That is, it does not meet the
323
- criteria for QoS class Guaranteed, and one of its Containers has a memory request.
323
+ criteria for QoS class ` Guaranteed` , and one of its Containers has a memory request.
324
324
325
325
Create the Pod:
326
326
-->
327
- 注意此 Pod 满足 ` Burstable ` QoS 类的标准。也就是说它不满足 Guaranteed QoS 类标准,
327
+ 注意此 Pod 满足 ` Burstable ` QoS 类的标准。也就是说它不满足 ` Guaranteed ` QoS 类标准,
328
328
因为它的 Container 之一设有内存请求。
329
329
330
330
创建 Pod:
0 commit comments