[zh-cn] sync concepts/workloads/controllers/replicationcontroller.md
Signed-off-by: Gao Qian <gaoq.jy@fujitsu.com>pull/38689/head
parent
f815138e75
commit
a57a4204d7
|
@ -173,20 +173,31 @@ specifies an expression with the name from each pod in the returned list.
|
|||
`--output=jsonpath` 选项指定了一个表达式,仅从返回列表中的每个 Pod 中获取名称。
|
||||
|
||||
<!--
|
||||
## Writing a ReplicationController Spec
|
||||
## Writing a ReplicationController Manifest
|
||||
|
||||
As with all other Kubernetes config, a ReplicationController needs `apiVersion`, `kind`, and `metadata` fields.
|
||||
The name of a ReplicationController object must be a valid
|
||||
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
|
||||
|
||||
When the control plane creates new Pods for a ReplicationController, the `.metadata.name` of the
|
||||
ReplicationController is part of the basis for naming those Pods. The name of a ReplicationController must be a valid
|
||||
[DNS subdomain](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)
|
||||
value, but this can produce unexpected results for the Pod hostnames. For best compatibility,
|
||||
the name should follow the more restrictive rules for a
|
||||
[DNS label](/docs/concepts/overview/working-with-objects/names#dns-label-names).
|
||||
|
||||
For general information about working with configuration files, see [object management](/docs/concepts/overview/working-with-objects/object-management/).
|
||||
|
||||
A ReplicationController also needs a [`.spec` section](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status).
|
||||
-->
|
||||
## 编写一个 ReplicationController 规约 {#writing-a-replicationcontroller-spec}
|
||||
## 编写一个 ReplicationController 清单 {#writing-a-replicationcontroller-manifest}
|
||||
|
||||
与所有其它 Kubernetes 配置一样,ReplicationController 需要 `apiVersion`、`kind` 和 `metadata` 字段。
|
||||
ReplicationController 对象的名称必须是有效的
|
||||
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)。
|
||||
|
||||
当控制平面为 ReplicationController 创建新的 Pod 时,ReplicationController
|
||||
的 `.metadata.name` 是命名这些 Pod 的部分基础。ReplicationController 的名称必须是一个合法的
|
||||
[DNS 子域](/zh-cn/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names)值,
|
||||
但这可能对 Pod 的主机名产生意外的结果。为获得最佳兼容性,名称应遵循更严格的
|
||||
[DNS 标签](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-label-names)规则。
|
||||
|
||||
有关使用配置文件的常规信息,
|
||||
参考[对象管理](/zh-cn/docs/concepts/overview/working-with-objects/object-management/)。
|
||||
|
||||
|
|
Loading…
Reference in New Issue