Skip to content

Commit c80d9ba

Browse files
author
Misty Stanley-Jones
committed
Update content updated by PR to Hugo syntax
Signed-off-by: Misty Stanley-Jones <[email protected]>
1 parent 7ee3f79 commit c80d9ba

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

content/en/docs/concepts/configuration/manage-compute-resources-container.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
title: Managing Compute Resources for Containers
3+
content_template: templates/concept
34
---
45

5-
{% capture overview %}
6+
{{% capture overview %}}
67

78
When you specify a [Pod](/docs/concepts/workloads/pods/pod/), you can optionally specify how
89
much CPU and memory (RAM) each Container needs. When Containers have resource
@@ -12,10 +13,10 @@ resources on a node can be handled in a specified manner. For more details about
1213
the difference between requests and limits, see
1314
[Resource QoS](https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md).
1415

15-
{% endcapture %}
16+
{{% /capture %}}
1617

1718

18-
{% capture body %}
19+
{{% capture body %}}
1920

2021
## Resource types
2122

@@ -142,8 +143,7 @@ When using Docker:
142143
multiplied by 100. The resulting value is the total amount of CPU time that a container can use
143144
every 100ms. A container cannot use more than its share of CPU time during this interval.
144145

145-
**Note**: The default quota period is 100ms. The minimum resolution of CPU quota is 1ms.
146-
{: .note}
146+
{{< note >}}**Note**: The default quota period is 100ms. The minimum resolution of CPU quota is 1ms.{{ {{</ note >}}}
147147

148148
- The `spec.containers[].resources.limits.memory` is converted to an integer, and
149149
used as the value of the
@@ -311,8 +311,9 @@ Kubernetes version 1.8 introduces a new resource, _ephemeral-storage_ for managi
311311

312312
This partition is “ephemeral” and applications cannot expect any performance SLAs (Disk IOPS for example) from this partition. Local ephemeral storage management only applies for the root partition; the optional partition for image layer and writable layer is out of scope.
313313

314+
{{< note >}}
314315
**Note:** If an optional runtime partition is used, root partition will not hold any image layer or writable layers.
315-
{: .note}
316+
{{< /note >}}
316317

317318
### Requests and limits setting for local ephemeral storage
318319
Each Container of a Pod can specify one or more of the following:
@@ -411,11 +412,12 @@ curl --header "Content-Type: application/json-patch+json" \
411412
http://k8s-master:8080/api/v1/nodes/k8s-node-1/status
412413
```
413414

415+
{{< note >}}
414416
**Note**: In the preceding request, `~1` is the encoding for the character `/`
415417
in the patch path. The operation path value in JSON-Patch is interpreted as a
416418
JSON-Pointer. For more details, see
417419
[IETF RFC 6901, section 3](https://tools.ietf.org/html/rfc6901#section-3).
418-
{: .note}
420+
{{< /note >}}
419421

420422
#### Cluster-level extended resources
421423

@@ -465,16 +467,18 @@ The API server restricts quantities of Extended Resources to whole numbers.
465467
Examples of _valid_ quantities are `3`, `3000m` and `3Ki`. Examples of
466468
_invalid_ quantities are `0.5` and `1500m`.
467469

470+
{{< note >}}
468471
**Note:** Extended Resources replace Opaque Integer Resources.
469472
Users can use any domain name prefix other than "`kubernetes.io`" which is reserved.
470-
{: .note}
473+
{{< /note >}}
471474

472475
To consume an Extended Resource in a Pod, include the resource name as a key
473476
in the `spec.containers[].resources.limits` map in the container spec.
474477

478+
{{< note >}}
475479
**Note:** Extended resources cannot be overcommitted, so request and limit
476480
must be equal if both are present in a container spec.
477-
{: .note}
481+
{{< /note >}}
478482

479483
A Pod is scheduled only if all of the resource requests are satisfied, including
480484
CPU, memory and any Extended Resources. The Pod remains in the `PENDING` state
@@ -523,10 +527,10 @@ For example, on AWS, the capacity of a node is reported in
523527
cores. We plan to revise the definition of the cpu resource to allow for more
524528
consistency across providers and platforms.
525529

526-
{% endcapture %}
530+
{{% /capture %}}
527531

528532

529-
{% capture whatsnext %}
533+
{{% capture whatsnext %}}
530534

531535
* Get hands-on experience [assigning Memory resources to containers and pods](/docs/tasks/configure-pod-container/assign-memory-resource/).
532536

@@ -536,6 +540,6 @@ consistency across providers and platforms.
536540

537541
* [ResourceRequirements](/docs/reference/generated/kubernetes-api/{{page.version}}/#resourcerequirements-v1-core)
538542

539-
{% endcapture %}
543+
{{% /capture %}}
540544

541545
{% include templates/concept.md %}

0 commit comments

Comments
 (0)