Skip to content

Commit d5039e8

Browse files
author
Tim Bannister
committed
Tidy Pod QoS config task
1 parent d7fdb03 commit d5039e8

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ weight: 30
88
<!-- overview -->
99

1010
This page shows how to configure Pods so that they will be assigned particular
11-
Quality of Service (QoS) classes. Kubernetes uses QoS classes to make decisions about evicting Pods when Node resources are exceeded.
11+
{{< glossary_tooltip text="Quality of Service (QoS) classes" term_id="qos-class" >}}.
12+
Kubernetes uses QoS classes to make decisions about evicting Pods when Node resources are exceeded.
1213

1314

15+
When Kubernetes creates a Pod it assigns one of these QoS classes to the Pod:
16+
17+
* [Guaranteed](/docs/concepts/workloads/pods/pod-qos/#guaranteed)
18+
* [Burstable](/docs/concepts/workloads/pods/pod-qos/#burstable)
19+
* [BestEffort](/docs/concepts/workloads/pods/pod-qos/#besteffort)
1420

1521

1622
## {{% heading "prerequisites" %}}
1723

1824

19-
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
25+
{{< include "task-tutorial-prereqs.md" >}}
2026

27+
You also need to be able to create and delete namespaces.
2128

2229

2330

2431
<!-- steps -->
2532

26-
## QoS classes
27-
28-
When Kubernetes creates a Pod it assigns one of these QoS classes to the Pod:
29-
30-
* Guaranteed
31-
* Burstable
32-
* BestEffort
3333

3434
## Create a namespace
3535

@@ -42,7 +42,7 @@ kubectl create namespace qos-example
4242

4343
## Create a Pod that gets assigned a QoS class of Guaranteed
4444

45-
For a Pod to be given a QoS class of Guaranteed:
45+
For a Pod to be given a QoS class of `Guaranteed`:
4646

4747
* Every Container in the Pod must have a memory limit and a memory request.
4848
* For every Container in the Pod, the memory limit must equal the memory request.
@@ -53,7 +53,7 @@ These restrictions apply to init containers and app containers equally.
5353
[Ephemeral containers](/docs/concepts/workloads/pods/ephemeral-containers/)
5454
cannot define resources so these restrictions do not apply.
5555

56-
Here is the configuration file for a Pod that has one Container. The Container has a memory limit and a
56+
Here is a manifest for a Pod that has one Container. The Container has a memory limit and a
5757
memory request, both equal to 200 MiB. The Container has a CPU limit and a CPU request, both equal to 700 milliCPU:
5858

5959
{{< codenew file="pods/qos/qos-pod.yaml" >}}
@@ -70,7 +70,7 @@ View detailed information about the Pod:
7070
kubectl get pod qos-demo --namespace=qos-example --output=yaml
7171
```
7272

73-
The output shows that Kubernetes gave the Pod a QoS class of Guaranteed. The output also
73+
The output shows that Kubernetes gave the Pod a QoS class of `Guaranteed`. The output also
7474
verifies that the Pod Container has a memory request that matches its memory limit, and it has
7575
a CPU request that matches its CPU limit.
7676

@@ -105,12 +105,12 @@ kubectl delete pod qos-demo --namespace=qos-example
105105

106106
## Create a Pod that gets assigned a QoS class of Burstable
107107

108-
A Pod is given a QoS class of Burstable if:
108+
A Pod is given a QoS class of `Burstable` if:
109109

110-
* The Pod does not meet the criteria for QoS class Guaranteed.
110+
* The Pod does not meet the criteria for QoS class `Guaranteed`.
111111
* At least one Container in the Pod has a memory or CPU request or limit.
112112

113-
Here is the configuration file for a Pod that has one Container. The Container has a memory limit of 200 MiB
113+
Here is a manifest for a Pod that has one Container. The Container has a memory limit of 200 MiB
114114
and a memory request of 100 MiB.
115115

116116
{{< codenew file="pods/qos/qos-pod-2.yaml" >}}
@@ -127,7 +127,7 @@ View detailed information about the Pod:
127127
kubectl get pod qos-demo-2 --namespace=qos-example --output=yaml
128128
```
129129

130-
The output shows that Kubernetes gave the Pod a QoS class of Burstable.
130+
The output shows that Kubernetes gave the Pod a QoS class of `Burstable`:
131131

132132
```yaml
133133
spec:
@@ -153,10 +153,10 @@ kubectl delete pod qos-demo-2 --namespace=qos-example
153153

154154
## Create a Pod that gets assigned a QoS class of BestEffort
155155

156-
For a Pod to be given a QoS class of BestEffort, the Containers in the Pod must not
156+
For a Pod to be given a QoS class of `BestEffort`, the Containers in the Pod must not
157157
have any memory or CPU limits or requests.
158158

159-
Here is the configuration file for a Pod that has one Container. The Container has no memory or CPU
159+
Here is a manifest for a Pod that has one Container. The Container has no memory or CPU
160160
limits or requests:
161161

162162
{{< codenew file="pods/qos/qos-pod-3.yaml" >}}
@@ -173,7 +173,7 @@ View detailed information about the Pod:
173173
kubectl get pod qos-demo-3 --namespace=qos-example --output=yaml
174174
```
175175

176-
The output shows that Kubernetes gave the Pod a QoS class of BestEffort.
176+
The output shows that Kubernetes gave the Pod a QoS class of `BestEffort`:
177177

178178
```yaml
179179
spec:
@@ -193,13 +193,13 @@ kubectl delete pod qos-demo-3 --namespace=qos-example
193193

194194
## Create a Pod that has two Containers
195195

196-
Here is the configuration file for a Pod that has two Containers. One container specifies a memory
196+
Here is a manifest for a Pod that has two Containers. One container specifies a memory
197197
request of 200 MiB. The other Container does not specify any requests or limits.
198198

199199
{{< codenew file="pods/qos/qos-pod-4.yaml" >}}
200200

201-
Notice that this Pod meets the criteria for QoS class Burstable. That is, it does not meet the
202-
criteria for QoS class Guaranteed, and one of its Containers has a memory request.
201+
Notice that this Pod meets the criteria for QoS class `Burstable`. That is, it does not meet the
202+
criteria for QoS class `Guaranteed`, and one of its Containers has a memory request.
203203

204204
Create the Pod:
205205

@@ -213,7 +213,7 @@ View detailed information about the Pod:
213213
kubectl get pod qos-demo-4 --namespace=qos-example --output=yaml
214214
```
215215

216-
The output shows that Kubernetes gave the Pod a QoS class of Burstable:
216+
The output shows that Kubernetes gave the Pod a QoS class of `Burstable`:
217217

218218
```yaml
219219
spec:

0 commit comments

Comments
 (0)