[zh] Fix links/translation in concepts section (7)

This commit is contained in:
Qiming Teng
2020-08-06 16:49:44 +08:00
parent dab8047c85
commit ed4cefbad1
7 changed files with 664 additions and 486 deletions
@@ -55,7 +55,7 @@ a Pod scheduled to a Node with 8GiB of memory and no other Pods, then the contai
more RAM.
-->
## 请求和约束
## 请求和约束 {#requests-and-limits}
如果 Pod 运行所在的节点具有足够的可用资源,容器可能(且可以)使用超出对应资源
`request` 属性所设置的资源量。不过,容器不可以使用超出其资源 `limit`
@@ -90,6 +90,7 @@ runtimes can have different ways to implement the same restrictions.
<!--
## Resource types
*CPU* and *memory* are each a *resource type*. A resource type has a base unit.
CPU represents compute processing and is specified in units of [Kubernetes CPUs](#meaning-of-cpu).
Memory is specified in units of bytes.
@@ -101,8 +102,7 @@ For example, on a system where the default page size is 4KiB, you could specify
`hugepages-2Mi: 80Mi`. If the container tries allocating over 40 2MiB huge pages (a
total of 80 MiB), that allocation fails.
-->
## 资源类型
## 资源类型 {#resource-types}
*CPU* 和*内存*都是*资源类型*。每种资源类型具有其基本单位。
CPU 表达的是计算处理能力,其单位是 [Kubernetes CPUs](#meaning-of-cpu)。
@@ -210,13 +210,13 @@ CPU 总是按绝对数量来请求的,不可以使用相对数量;
<!--
## Meaning of memory
Limits and requests for `memory` are measured in bytes. You can express memory as
a plain integer or as a fixed-point integer using one of these suffixes:
E, P, T, G, M, K. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi,
Mi, Ki. For example, the following represent roughly the same value:
-->
## 内存的含义
## 内存的含义 {#meaning-of-memory}
内存的约束和请求以字节为单位。你可以使用以下后缀之一以一般整数或定点整数形式来表示内存:
E、P、T、G、M、K。你也可以使用对应的 2 的幂数:Ei、Pi、Ti、Gi、Mi、Ki。
@@ -403,8 +403,7 @@ The kubelet can provide scratch space to Pods using local ephemeral storage to
mount [`emptyDir`](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir)
{{< glossary_tooltip term_id="volume" text="volumes" >}} into containers.
-->
## 本地临时存储
## 本地临时存储 {#local-ephemeral-storage}
<!-- feature gate LocalStorageCapacityIsolation -->
{{< feature-state for_k8s_version="v1.10" state="beta" >}}
@@ -862,7 +861,7 @@ operator must advertise an Extended Resource. Second, users must request the
Extended Resource in Pods.
-->
## 扩展资源(Extended Resources
## 扩展资源(Extended Resources {#extended-resources}
扩展资源是 `kubernetes.io` 域名之外的标准资源名称。
它们使得集群管理员能够颁布非 Kubernetes 内置资源,而用户可以使用他们。