Merge pull request #35308 from Sea-n/zh-links-eviction
[zh-cn] Fix link for runtime-class
This commit is contained in:
@@ -81,14 +81,14 @@ Kubernetes 资源模型期望 Pod 中的容器之间可以共享某些资源。
|
|||||||
## 下一步是什么?
|
## 下一步是什么?
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The RuntimeClass resource is an important foundation for surfacing runtime properties to the control plane. For example, to implement scheduler support for clusters with heterogeneous nodes supporting different runtimes, we might add [NodeAffinity](/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) terms to the RuntimeClass definition. Another area to address is managing the variable resource requirements to run pods of different runtimes. The [Pod Overhead proposal](https://docs.google.com/document/d/1EJKT4gyl58-kzt2bnwkv08MIUZ6lkDpXcxkHqCvvAp4/preview) was an early take on this that aligns nicely with the RuntimeClass design, and may be pursued further.
|
The RuntimeClass resource is an important foundation for surfacing runtime properties to the control plane. For example, to implement scheduler support for clusters with heterogeneous nodes supporting different runtimes, we might add [NodeAffinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) terms to the RuntimeClass definition. Another area to address is managing the variable resource requirements to run pods of different runtimes. The [Pod Overhead proposal](https://docs.google.com/document/d/1EJKT4gyl58-kzt2bnwkv08MIUZ6lkDpXcxkHqCvvAp4/preview) was an early take on this that aligns nicely with the RuntimeClass design, and may be pursued further.
|
||||||
-->
|
-->
|
||||||
RuntimeClass 资源是将运行时属性显示到控制平面的重要基础。
|
RuntimeClass 资源是将运行时属性显示到控制平面的重要基础。
|
||||||
例如,要对具有支持不同运行时间的异构节点的集群实施调度程序支持,我们可以在 RuntimeClass 定义中添加
|
例如,要对具有支持不同运行时间的异构节点的集群实施调度程序支持,我们可以在 RuntimeClass 定义中添加
|
||||||
[NodeAffinity](/zh-cn/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity)条件。
|
[NodeAffinity](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) 条件。
|
||||||
另一个需要解决的领域是管理可变资源需求以运行不同运行时的 Pod。
|
另一个需要解决的领域是管理可变资源需求以运行不同运行时的 Pod。
|
||||||
[Pod Overhead 提案](https://docs.google.com/document/d/1EJKT4gyl58-kzt2bnwkv08MIUZ6lkDpXcxkHqCvvAp4/preview)
|
[Pod Overhead 提案](https://docs.google.com/document/d/1EJKT4gyl58-kzt2bnwkv08MIUZ6lkDpXcxkHqCvvAp4/preview)是一项较早的尝试,与
|
||||||
是一项较早的尝试,与 RuntimeClass 设计非常吻合,并且可能会进一步推广。
|
RuntimeClass 设计非常吻合,并且可能会进一步推广。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Many other RuntimeClass extensions have also been proposed, and will be revisited as the feature continues to develop and mature. A few more extensions that are being considered include:
|
Many other RuntimeClass extensions have also been proposed, and will be revisited as the feature continues to develop and mature. A few more extensions that are being considered include:
|
||||||
@@ -130,7 +130,6 @@ RuntimeClass will be under active development at least through 2019, and we’re
|
|||||||
- 试试吧!作为 Alpha 功能,还有一些其他设置步骤可以使用 RuntimeClass。
|
- 试试吧!作为 Alpha 功能,还有一些其他设置步骤可以使用 RuntimeClass。
|
||||||
有关如何使其运行,请参考 [RuntimeClass 文档](/zh-cn/docs/concepts/containers/runtime-class/#runtime-class)。
|
有关如何使其运行,请参考 [RuntimeClass 文档](/zh-cn/docs/concepts/containers/runtime-class/#runtime-class)。
|
||||||
- 查看 [RuntimeClass Kubernetes 增强建议](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/runtime-class.md)以获取更多细节设计细节。
|
- 查看 [RuntimeClass Kubernetes 增强建议](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/runtime-class.md)以获取更多细节设计细节。
|
||||||
- [沙盒隔离级别决策](https://docs.google.com/document/d/1fe7lQUjYKR0cijRmSbH_y0_l3CYPkwtQa5ViywuNo8Q/preview)
|
- [沙盒隔离级别决策](https://docs.google.com/document/d/1fe7lQUjYKR0cijRmSbH_y0_l3CYPkwtQa5ViywuNo8Q/preview)记录了最初使
|
||||||
记录了最初使 RuntimeClass 成为 Pod 级别选项的思考过程。
|
RuntimeClass 成为 Pod 级别选项的思考过程。
|
||||||
- 加入讨论,并通过 [SIG-Node 社区](https://github.com/kubernetes/community/tree/master/sig-node)帮助塑造 RuntimeClass 的未来。
|
- 加入讨论,并通过 [SIG-Node 社区](https://github.com/kubernetes/community/tree/master/sig-node)帮助塑造 RuntimeClass 的未来。
|
||||||
|
|
||||||
|
|||||||
@@ -77,12 +77,12 @@ CRI implementation for how to configure.
|
|||||||
RuntimeClass 的配置依赖于 运行时接口(CRI)的实现。
|
RuntimeClass 的配置依赖于 运行时接口(CRI)的实现。
|
||||||
根据你使用的 CRI 实现,查阅相关的文档([下方](#cri-configuration))来了解如何配置。
|
根据你使用的 CRI 实现,查阅相关的文档([下方](#cri-configuration))来了解如何配置。
|
||||||
|
|
||||||
|
{{< note >}}
|
||||||
<!--
|
<!--
|
||||||
RuntimeClass assumes a homogeneous node configuration across the cluster by default (which means
|
RuntimeClass assumes a homogeneous node configuration across the cluster by default (which means
|
||||||
that all nodes are configured the same way with respect to container runtimes). To support
|
that all nodes are configured the same way with respect to container runtimes). To support
|
||||||
heterogenous node configurations, see [Scheduling](#scheduling) below.
|
heterogeneous node configurations, see [Scheduling](#scheduling) below.
|
||||||
-->
|
-->
|
||||||
{{< note >}}
|
|
||||||
RuntimeClass 假设集群中的节点配置是同构的(换言之,所有的节点在容器运行时方面的配置是相同的)。
|
RuntimeClass 假设集群中的节点配置是同构的(换言之,所有的节点在容器运行时方面的配置是相同的)。
|
||||||
如果需要支持异构节点,配置方法请参阅下面的 [调度](#scheduling)。
|
如果需要支持异构节点,配置方法请参阅下面的 [调度](#scheduling)。
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
@@ -124,12 +124,19 @@ metadata:
|
|||||||
handler: myconfiguration
|
handler: myconfiguration
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The name of a RuntimeClass object must be a valid
|
||||||
|
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
|
||||||
|
-->
|
||||||
|
RuntimeClass 对象的名称必须是有效的
|
||||||
|
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)。
|
||||||
|
|
||||||
|
{{< note >}}
|
||||||
<!--
|
<!--
|
||||||
It is recommended that RuntimeClass write operations (create/update/patch/delete) be
|
It is recommended that RuntimeClass write operations (create/update/patch/delete) be
|
||||||
restricted to the cluster administrator. This is typically the default. See
|
restricted to the cluster administrator. This is typically the default. See
|
||||||
[Authorization Overview](/docs/reference/access-authn-authz/authorization/) for more details.
|
[Authorization Overview](/docs/reference/access-authn-authz/authorization/) for more details.
|
||||||
-->
|
-->
|
||||||
{{< note >}}
|
|
||||||
建议将 RuntimeClass 写操作(create、update、patch 和 delete)限定于集群管理员使用。
|
建议将 RuntimeClass 写操作(create、update、patch 和 delete)限定于集群管理员使用。
|
||||||
通常这是默认配置。参阅[授权概述](/zh-cn/docs/reference/access-authn-authz/authorization/)了解更多信息。
|
通常这是默认配置。参阅[授权概述](/zh-cn/docs/reference/access-authn-authz/authorization/)了解更多信息。
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
@@ -203,17 +210,16 @@ for more details:
|
|||||||
-->
|
-->
|
||||||
更详细信息,请查阅 containerd 的[配置指南](https://github.com/containerd/containerd/blob/main/docs/cri/config.md)
|
更详细信息,请查阅 containerd 的[配置指南](https://github.com/containerd/containerd/blob/main/docs/cri/config.md)
|
||||||
|
|
||||||
#### [cri-o](https://cri-o.io/)
|
#### {{< glossary_tooltip term_id="cri-o" >}}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Runtime handlers are configured through cri-o's configuration at `/etc/crio/crio.conf`. Valid
|
Runtime handlers are configured through CRI-O's configuration at `/etc/crio/crio.conf`. Valid
|
||||||
handlers are configured under the [crio.runtime
|
handlers are configured under the
|
||||||
table](https://github.com/kubernetes-sigs/cri-o/blob/master/docs/crio.conf.5.md#crioruntime-table):
|
[crio.runtime table](https://github.com/cri-o/cri-o/blob/master/docs/crio.conf.5.md#crioruntime-table):
|
||||||
-->
|
-->
|
||||||
通过 cri-o 的 `/etc/crio/crio.conf` 配置文件来配置运行时 handler。
|
通过 CRI-O 的 `/etc/crio/crio.conf` 配置文件来配置运行时 handler。
|
||||||
handler 需要配置在
|
handler 需要配置在
|
||||||
[crio.runtime 表](https://github.com/kubernetes-sigs/cri-o/blob/master/docs/crio.conf.5.md#crioruntime-table)
|
[crio.runtime 表](https://github.com/cri-o/cri-o/blob/master/docs/crio.conf.5.md#crioruntime-table)之下:
|
||||||
下面:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
[crio.runtime.runtimes.${HANDLER_NAME}]
|
[crio.runtime.runtimes.${HANDLER_NAME}]
|
||||||
@@ -264,7 +270,7 @@ by each.
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
To learn more about configuring the node selector and tolerations, see
|
To learn more about configuring the node selector and tolerations, see
|
||||||
[Assigning Pods to Nodes](/docs/concepts/configuration/assign-pod-node/).
|
[Assigning Pods to Nodes](/docs/concepts/scheduling-eviction/assign-pod-node/).
|
||||||
-->
|
-->
|
||||||
更多有关 node selector 和 tolerations 的配置信息,请查阅
|
更多有关 node selector 和 tolerations 的配置信息,请查阅
|
||||||
[将 Pod 分派到节点](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/)。
|
[将 Pod 分派到节点](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/)。
|
||||||
|
|||||||
Reference in New Issue
Block a user