Skip to content

Commit 9017f40

Browse files
authored
Update replicationcontroller.md (#32060)
* Update replicationcontroller.md Synchronize English documentation about replicationcontroller * Update replicationcontroller.md Adjustment format * Update replicationcontroller.md I rechecked the changes and translated,thanks for reviews * Update replicationcontroller.md * Update replicationcontroller.md Modified as suggested * Update replicationcontroller.md
1 parent 91b36ec commit 9017f40

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

content/zh/docs/concepts/workloads/controllers/replicationcontroller.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -331,15 +331,15 @@ kubectl 将 ReplicationController 缩放为 0 并等待以便在删除 Replicati
331331

332332
You can delete a ReplicationController without affecting any of its pods.
333333

334-
Using kubectl, specify the `--cascade=false` option to [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete).
334+
Using kubectl, specify the `--cascade=orphan` option to [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete).
335335

336336
When using the REST API or Go client library, simply delete the ReplicationController object.
337337
-->
338338
### 只删除 ReplicationController
339339

340340
你可以删除一个 ReplicationController 而不影响它的任何 Pod。
341341

342-
使用 kubectl,为 [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) 指定 `--cascade=false` 选项。
342+
使用 kubectl,为 [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) 指定 `--cascade=orphan` 选项。
343343

344344
当使用 REST API 或 Go 客户端库时,只需删除 ReplicationController 对象。
345345

@@ -501,12 +501,12 @@ ReplicationController 永远被限制在这个狭隘的职责范围内。
501501
我们甚至计划考虑批量创建 Pod 的机制(查阅 [#170](https://issue.k8s.io/170))。
502502

503503
<!--
504-
The ReplicationController is intended to be a composable building-block primitive. We expect higher-level APIs and/or tools to be built on top of it and other complementary primitives for user convenience in the future. The "macro" operations currently supported by kubectl (run, scale, rolling-update) are proof-of-concept examples of this. For instance, we could imagine something like [Asgard](http://techblog.netflix.com/2012/06/asgard-web-based-cloud-management-and.html) managing ReplicationControllers, auto-scalers, services, scheduling policies, canaries, etc.
504+
The ReplicationController is intended to be a composable building-block primitive. We expect higher-level APIs and/or tools to be built on top of it and other complementary primitives for user convenience in the future. The "macro" operations currently supported by kubectl (run, scale, rolling-update) are proof-of-concept examples of this. For instance, we could imagine something like [Asgard](https://netflixtechblog.com/asgard-web-based-cloud-management-and-deployment-2c9fc4e4d3a1) managing ReplicationControllers, auto-scalers, services, scheduling policies, canaries, etc.
505505
-->
506506
ReplicationController 旨在成为可组合的构建基元。
507507
我们希望在它和其他补充原语的基础上构建更高级别的 API 或者工具,以便于将来的用户使用。
508508
kubectl 目前支持的 "macro" 操作(运行、缩放、滚动更新)就是这方面的概念示例。
509-
例如,我们可以想象类似于 [Asgard](https://techblog.netflix.com/2012/06/asgaard-web-based-cloud-management-and.html)
509+
例如,我们可以想象类似于 [Asgard](https://netflixtechblog.com/asgard-web-based-cloud-management-and-deployment-2c9fc4e4d3a1)
510510
的东西管理 ReplicationController、自动定标器、服务、调度策略、金丝雀发布等。
511511

512512
<!--
@@ -544,16 +544,14 @@ Note that we recommend using Deployments instead of directly using Replica Sets,
544544
<!--
545545
### Deployment (Recommended)
546546

547-
[`Deployment`](/docs/concepts/workloads/controllers/deployment/) is a higher-level API object that updates its underlying Replica Sets and their Pods
548-
in a similar fashion as `kubectl rolling-update`. Deployments are recommended if you want this rolling update functionality,
549-
because unlike `kubectl rolling-update`, they are declarative, server-side, and have additional features.
547+
[`Deployment`](/docs/concepts/workloads/controllers/deployment/) is a higher-level API object that updates its underlying Replica Sets and their Pods.
548+
Deployments are recommended if you want the rolling update functionality,
549+
because they are declarative, server-side, and have additional features.
550550
-->
551551
### Deployment (推荐)
552552

553-
[`Deployment`](/zh/docs/concepts/workloads/controllers/deployment/) 是一种更高级别的 API 对象,
554-
它以类似于 `kubectl rolling-update` 的方式更新其底层 ReplicaSet 及其 Pod。
555-
如果你想要这种滚动更新功能,那么推荐使用 Deployment,因为与 `kubectl rolling-update` 不同,
556-
它们是声明式的、服务端的,并且具有其它特性。
553+
[`Deployment`](/zh/docs/concepts/workloads/controllers/deployment/) 是一种更高级别的 API 对象,用于更新其底层 ReplicaSet 及其 Pod。
554+
如果你想要这种滚动更新功能,那么推荐使用 Deployment,因为它们是声明式的、服务端的,并且具有其它特性。
557555

558556
<!--
559557
### Bare Pods
@@ -596,11 +594,19 @@ ReplicationController。
596594
并且在机器准备重新启动或者关闭时安全地终止。
597595

598596
<!--
599-
## For more information
597+
## {{% heading "whatsnext" %}}
600598

601-
Read [Run Stateless AP Replication Controller](/docs/tutorials/stateless-application/run-stateless-ap-replication-controller/).
599+
* Learn about [Pods](/docs/concepts/workloads/pods).
600+
* Learn about [Deployment](/docs/concepts/workloads/controllers/deployment/), the replacement
601+
for ReplicationController.
602+
* `ReplicationController` is part of the Kubernetes REST API.
603+
Read the {{< api-reference page="workload-resources/replication-controller-v1" >}}
604+
object definition to understand the API for replication controllers.
602605
-->
603-
## 更多信息
606+
## {{% heading "whatsnext" %}}
604607

605-
请阅读[运行无状态的 ReplicationController](/zh/docs/tasks/run-application/run-stateless-application-deployment/)。
608+
- 了解 [Pods](/zh/docs/concepts/workloads/pods)。
609+
- 了解 [Depolyment](/zh/docs/concepts/workloads/controllers/deployment/),ReplicationController 的替代品。
610+
- `ReplicationController` 是 Kubernetes REST API 的一部分,阅读 {{< api-reference page="workload-resources/replication-controller-v1" >}}
611+
对象定义以了解 replication controllers 的 API。
606612

0 commit comments

Comments
 (0)