[zh] Fix some 404 links

This commit is contained in:
Sean Wei
2022-06-24 20:42:43 +08:00
parent 5a1ade2551
commit 34563abc4f
13 changed files with 49 additions and 49 deletions
@@ -1351,7 +1351,7 @@ A set of <code>&lt;resource name&gt;=&lt;resource quantity&gt;</code> (e.g. <cod
kubernetes 系统预留的资源配置,以一组 <code>&lt;资源名称&gt;=&lt;资源数量&gt;</code> 格式表示。
(例如:<code>cpu=200m,memory=500Mi,ephemeral-storage=1Gi,pid='100'</code>)。
当前支持 <code>cpu</code>、<code>memory</code> 和用于根文件系统的 <code>ephemeral-storage</code>。
请参阅<a href="http://kubernetes.io/zh-cn/docs/user-guide/compute-resources">这里</a>获取更多信息。
请参阅<a href="https://kubernetes.io/zh-cn/docs/concepts/configuration/manage-resources-containers/">这里</a>获取更多信息。
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
</td>
@@ -2,7 +2,6 @@
title: Kubelet 配置 (v1beta1)
content_type: tool-reference
package: kubelet.config.k8s.io/v1beta1
auto_generated: true
---
<!--
@@ -683,7 +682,7 @@ The cgroupRoot must be specified if this field is not empty.
Default: &quot;&qout;
-->
<p><code>systemCgroups</code>是用来放置那些未被容器化的、非内核的进程的控制组
(CGroup)的绝对名称。设置为空字符串表示没有这类容器。回滚此字段设置需要重启节点。
CGroup)的绝对名称。设置为空字符串表示没有这类容器。回滚此字段设置需要重启节点。
当此字段非空时,必须设置<code>cgroupRoot</code>字段。</p>
<p>默认值:&quot;&quot;</p>
</td>
@@ -696,7 +695,7 @@ Default: &quot;&qout;
<!--cgroupRoot is the root cgroup to use for pods. This is handled by the
container runtime on a best effort basis.
-->
<p><code>cgroupRoot</code>是用来运行 Pod 的控制组 (CGroup)。
<p><code>cgroupRoot</code>是用来运行 Pod 的控制组CGroup)。
容器运行时会尽可能处理此字段的设置值。</p>
</td>
</tr>
@@ -725,7 +724,7 @@ Default: true
or systemd).
Default: &quot;cgroupfs&quot;
-->
<p><code>cgroupDriver</code>是 kubelet 用来操控宿主系统上控制组 (CGroup
<p><code>cgroupDriver</code>是 kubelet 用来操控宿主系统上控制组CGroup
的驱动程序(cgroupfs 或 systemd)。</p>
<p>默认值:&quot;cgroupfs&quot;</p>
</td>
@@ -1399,7 +1398,8 @@ Default: nil
-->
<p><code>systemReserved</code>是一组<code>资源名称=资源数量</code>对,
用来描述为非 Kubernetes 组件预留的资源(例如:'cpu=200m,memory=150G')。</p>
<p>目前仅支持 CPU 和内存。更多细节可参见 http://kubernetes.io/zh/docs/user-guide/compute-resources。</p>
<p>目前仅支持 CPU 和内存。更多细节可参见
https://kubernetes.io/zh-cn/docs/concepts/configuration/manage-resources-containers/ 。</p>
<p>默认值:Nil</p>
</td>
</tr>
@@ -22,9 +22,9 @@ kubectl 管理控制 Kubernetes 集群。
<!--
Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/
Find more information at: https://kubernetes.io/docs/reference/kubectl/
-->
获取更多信息,请访问 [kubectl 概述](/zh-cn/docs/reference/kubectl/overview/)。
获取更多信息,请访问 [kubectl 概述](/zh-cn/docs/reference/kubectl/)。
```
kubectl [flags]
@@ -625,4 +625,4 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
* [kubectl top](/docs/reference/generated/kubectl/kubectl-commands#top) - 显示资源(CPU /内存/存储)使用率
* [kubectl uncordon](/docs/reference/generated/kubectl/kubectl-commands#uncordon) - 标记节点为可调度的
* [kubectl version](/docs/reference/generated/kubectl/kubectl-commands#version) - 打印客户端和服务器的版本信息
* [kubectl wait](/docs/reference/generated/kubectl/kubectl-commands#wait) - 实验性:等待一个或多个资源达到某种状态
* [kubectl wait](/docs/reference/generated/kubectl/kubectl-commands#wait) - 实验性:等待一个或多个资源达到某种状态
@@ -17,6 +17,7 @@ content_type: "api_reference"
description: "Volume represents a named volume in a pod that may be accessed by any container in the pod."
title: "Volume"
weight: 3
auto_generated: true
-->
`import "k8s.io/api/core/v1"`
@@ -444,7 +445,7 @@ Volume 表示 Pod 中一个有名字的卷,可以由 Pod 中的任意容器进
sizeLimit 是这个 EmptyDir 卷所需的本地存储总量。这个大小限制也适用于内存介质。
EmptyDir 的内存介质最大使用量将是此处指定的 sizeLimit 与 Pod 中所有容器内存限制总和这两个值之间的最小值。
默认为 nil,这意味着限制未被定义。更多信息:
http://kubernetes.io/zh-cn/docs/user-guide/volumes#emptydir
https://kubernetes.io/zh-cn/docs/concepts/storage/volumes/#emptydir
<!--
- **hostPath** (HostPathVolumeSource)
@@ -178,7 +178,7 @@ The Kubelet populates this with `runtime.GOARCH` as defined by Go. This can be h
用于:Node
Kubelet 使用 Go 定义的 `runtime.GOARCH` 填充它。 如果你混合使用 ARM 和 X86 节点,这会很方便。
Kubelet 使用 Go 定义的 `runtime.GOARCH` 填充它。如果你混合使用 ARM 和 X86 节点,这会很方便。
<!--
### kubernetes.io/os
@@ -230,11 +230,11 @@ This label has been deprecated. Please use `kubernetes.io/os` instead.
-->
### beta.kubernetes.io/arch (已弃用) {#beta-kubernetes-io-arch}
此标签已被弃用。请改用`kubernetes.io/arch`
此标签已被弃用。请改用 `kubernetes.io/arch`
### beta.kubernetes.io/os (已弃用) {#beta-kubernetes-io-os}
此标签已被弃用。请改用`kubernetes.io/os`
此标签已被弃用。请改用 `kubernetes.io/os`
<!--
### kubernetes.io/hostname {#kubernetesiohostname}
@@ -255,7 +255,7 @@ This label is also used as part of the topology hierarchy. See [topology.kubern
Kubelet 使用主机名填充此标签。请注意,可以通过将 `--hostname-override` 标志传递给 `kubelet` 来替代“实际”主机名。
此标签也用作拓扑层次结构的一部分。 有关详细信息,请参阅 [topology.kubernetes.io/zone](#topologykubernetesiozone)。
此标签也用作拓扑层次结构的一部分。有关详细信息,请参阅 [topology.kubernetes.io/zone](#topologykubernetesiozone)。
<!--
### kubernetes.io/change-cause {#change-cause}
@@ -328,7 +328,7 @@ which allows users to influence ReplicaSet downscaling order. The annotation par
用于:Pod
该注解用于设置 [Pod 删除成本](/docs/concepts/workloads/controllers/replicaset/#pod-deletion-cost)允许用户影响 ReplicaSet 缩减顺序。注解解析为 `int32` 类型。
该注解用于设置 [Pod 删除成本](/zh-cn/docs/concepts/workloads/controllers/replicaset/#pod-deletion-cost)允许用户影响 ReplicaSet 缩减顺序。注解解析为 `int32` 类型。
<!--
### kubernetes.io/ingress-bandwidth
@@ -353,7 +353,7 @@ For example, `10M` means 10 megabits per second.
{{< note >}}
入站流量控制注解是一项实验性功能。
如果要启用流量控制支持,必须将`bandwidth`插件添加到 CNI 配置文件(默认为`/etc/cni/net.d`
如果要启用流量控制支持,必须将 `bandwidth` 插件添加到 CNI 配置文件(默认为`/etc/cni/net.d`
并确保二进制文件包含在你的 CNI bin 目录中(默认为`/opt/cni/bin`)。
{{< /note >}}
@@ -364,9 +364,9 @@ For example, `10M` means 10 megabits per second.
你可以对 Pod 应用服务质量流量控制并有效限制其可用带宽。
入站流量(到 Pod)通过控制排队的数据包来处理,以有效地处理数据。
要限制 Pod 的带宽,请编写对象定义 JSON 文件并使用 `kubernetes.io/ingress-bandwidth`
注解指定数据流量速度。 用于指定入站的速率单位是每秒,
注解指定数据流量速度。用于指定入站的速率单位是每秒,
作为[量纲(Quantity](/zh-cn/docs/reference/kubernetes-api/common-definitions/quantity/)。
例如,`10M`表示每秒 10 兆比特。
例如,`10M` 表示每秒 10 兆比特。
<!--
### kubernetes.io/egress-bandwidth
@@ -391,7 +391,7 @@ For example, `10M` means 10 megabits per second.
{{< note >}}
出站流量控制注解是一项实验性功能。
如果要启用流量控制支持,必须将`bandwidth`插件添加到 CNI 配置文件(默认为`/etc/cni/net.d`
如果要启用流量控制支持,必须将 `bandwidth` 插件添加到 CNI 配置文件(默认为`/etc/cni/net.d`
并确保二进制文件包含在你的 CNI bin 目录中(默认为`/opt/cni/bin`)。
{{< /note >}}
@@ -483,7 +483,7 @@ StatefulSet topic for more details.
当 StatefulSet 控制器为 StatefulSet 创建 Pod 时,控制平面会在该 Pod 上设置此标签。标签的值是正在创建的 Pod 的名称。
有关详细信息,请参阅 StatefulSet 主题中的 [Pod 名称标签](/docs/concepts/workloads/controllers/statefulset/#pod-name-label)。
有关详细信息,请参阅 StatefulSet 主题中的 [Pod 名称标签](/zh-cn/docs/concepts/workloads/controllers/statefulset/#pod-name-label)。
<!--
### topology.kubernetes.io/region {#topologykubernetesioregion}
@@ -529,8 +529,8 @@ A region represents a larger domain, made up of one or more zones. It is uncomm
在 PersistentVolume 上:拓扑感知卷配置器将自动在 `PersistentVolume` 上设置 Node 亲和性约束。
一个 Zone 代表一个逻辑故障域。 Kubernetes 集群通常跨越多个 Zone 以提高可用性。虽然 Zone 的确切定义留给基础设施实现,
但 Zone 的常见属性包括 Zone 内非常低的网络延迟、 Zone 内的免费网络流量以及与其他 Zone 的故障独立性。
一个 Zone 代表一个逻辑故障域。Kubernetes 集群通常跨越多个 Zone 以提高可用性。虽然 Zone 的确切定义留给基础设施实现,
但 Zone 的常见属性包括 Zone 内非常低的网络延迟、Zone 内的免费网络流量以及与其他 Zone 的故障独立性。
例如,一个 Zone 内的 Node 可能共享一个网络交换机,但不同 Zone 中的 Node 无法共享交换机。
一个 Region 代表一个更大的域,由一个或多个 Zone 组成。Kubernetes 集群跨多个 Region 并不常见,虽然 Zone 或 Region 的确切定义留给基础设施实现,
@@ -544,9 +544,9 @@ Kubernetes makes a few assumptions about the structure of zones and regions:
-->
Kubernetes 对 Zone 和 Region 的结构做了一些假设:
1. Zone 和 Region 是分层的: Zone 是 Region 的严格子集,没有 Zone 可以在两个 Region 中;
1. Zone 和 Region 是分层的:Zone 是 Region 的严格子集,没有 Zone 可以在两个 Region 中;
2. Zone 名称跨 Region 是唯一的;例如, Region “africa-east-1” 可能由 Zone “africa-east-1a” 和 “africa-east-1b” 组成。
2. Zone 名称跨 Region 是唯一的;例如,Region “africa-east-1” 可能由 Zone “africa-east-1a” 和 “africa-east-1b” 组成。
<!--
It should be safe to assume that topology labels do not change. Even though labels are strictly mutable, consumers of them can assume that a given node is not going to be moved between zones without being destroyed and recreated.
@@ -581,7 +581,7 @@ If `PersistentVolumeLabel` does not support automatic labeling of your Persisten
adding the labels manually (or adding support for `PersistentVolumeLabel`). With `PersistentVolumeLabel`, the scheduler prevents Pods from mounting volumes in a different zone. If your infrastructure doesn't have this constraint, you don't need to add the zone labels to the volumes at all.
-->
你应该考虑手动添加标签(或添加对 `PersistentVolumeLabel` 的支持)。
基于 `PersistentVolumeLabel` ,调度程序可以防止 Pod 挂载来自其他 Zone 的卷。如果你的基础架构没有此限制,则不需要将 Zone 标签添加到卷上。
基于 `PersistentVolumeLabel`,调度程序可以防止 Pod 挂载来自其他 Zone 的卷。如果你的基础架构没有此限制,则不需要将 Zone 标签添加到卷上。
<!--
### volume.beta.kubernetes.io/storage-provisioner (deprecated)
@@ -1336,7 +1336,7 @@ See more details on the [Audit Annotations](/docs/reference/labels-annotations-t
- [`insecure-sha1.invalid-cert.kubernetes.io/$hostname`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#insecure-sha1-invalid-cert-kubernetes-io-hostname)
- [`missing-san.invalid-cert.kubernetes.io/$hostname`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#missing-san-invalid-cert-kubernetes-io-hostname)
- [`pod-security.kubernetes.io/audit-violations`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-audit-violations)
- [`pod-security.kubernetes.io/enforce-policy`](/zh-cn/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-enforce-policy)
- [`pod-security.kubernetes.io/enforce-policy`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-enforce-policy)
- [`pod-security.kubernetes.io/exempt`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-exempt)
在[审计注解](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/)页面上查看更多详细信息。
@@ -251,7 +251,7 @@ extension points:
-->
- `NodeResourcesFit`:检查节点是否拥有 Pod 请求的所有资源。
得分可以使用以下三种策略之一:`LeastAllocated`(默认)、`MostAllocated`
`RequestedToCapacityRatio`
`RequestedToCapacityRatio`
实现的扩展点:`preFilter``filter``score`
<!--
@@ -501,7 +501,7 @@ This would equate to manually enabling `MyPlugin` for all of its extension
points, like so:
-->
这相当于为所有扩展点手动启用`MyPlugin`,如下所示:
这相当于为所有扩展点手动启用 `MyPlugin`,如下所示:
```yaml
apiVersion: kubescheduler.config.k8s.io/v1beta3
@@ -732,7 +732,7 @@ as well as its seamless integration with the existing methods for configuring ex
## Scheduler configuration migrations
-->
## 调度程序配置迁移
## 调度程序配置迁移 {#scheduler-configuration-migrations}
{{< tabs name="tab_with_md" >}}
{{% tab name="v1beta1 → v1beta2" %}}
<!--
@@ -774,7 +774,7 @@ as well as its seamless integration with the existing methods for configuring ex
* The scheduler plugin `ServiceAffinity` is deprecated; instead, use the [`InterPodAffinity`](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity) plugin (enabled by default) to achieve similar behavior.
-->
* 调度程序插件 `ServiceAffinity` 已弃用;
相反,使用 [`InterPodAffinity`](/zh-cn/doc/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
相反,使用 [`InterPodAffinity`](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
插件(默认启用)来实现类似的行为。
<!--