-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh] translate administer-cluster/controller-manager-leader-migration.md #27719
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit d82bfa7 https://deploy-preview-27719--kubernetes-io-master-staging.netlify.app |
@@ -0,0 +1,278 @@ | |||
--- | |||
title: "使用云管理控制器将复制的控制平面迁移" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
将重复的控制平面迁至云控制器管理器
@@ -0,0 +1,278 @@ | |||
--- | |||
title: "使用云管理控制器将复制的控制平面迁移" | |||
linkTitle: "将复制的控制平面迁移以使用云管理控制器" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
If you use a tool to administrator the cluster, please refer to the documentation of the tool and the cloud provider for more details. | ||
--> | ||
## 背景 | ||
作为 [云提供商提取工作](https://kubernetes.io/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/)的一部分, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“作为”后面有多余空格;中英、中文数字交替时,添加空格
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 provider 是"驱动“的意思。是将 cloud provider 从 kube controller manager 里面抽取出来,形成 cloud controller manager。翻译成将“云提供商”抽取出来就令人困惑了。请彻查。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
## 背景 | ||
作为 [云提供商提取工作](https://kubernetes.io/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/)的一部分, | ||
所有特定于云的控制器都必须移出 `kube-controller-manager`。 | ||
所有在 `kube-controller-manager` 中运行云控制器的现有集群必须迁移到特定于云提供商的 `kube-controller-manager` 中运行控制器。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- one extra space in front of both
kube-controller-manager
- second
kube-controller-manager
should becloud-controller-manager
As part of the [cloud provider extraction effort](https://kubernetes.io/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/), | ||
all cloud specific controllers must be moved out of the `kube-controller-manager`. | ||
All existing clusters that run cloud controllers in the `kube-controller-manager` must migrate to instead run the controllers in a cloud provider specific `cloud-controller-manager`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't recommend that translate a whole section once upon a time, split it to paragraphs, really helpful to review both original text and translated ones.
N + 1 版本的 `kube-controller-manager` 不能启用领导者迁移, | ||
因为在对于外部云提供商,它不再运行已迁移的控制器,因此不参与迁移。 | ||
|
||
请参阅 [云控制器管理器管理](/zh/docs/tasks/administer-cluster/running-cloud-controller/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请参阅[云控制器管理器管理]
因为在对于外部云提供商,它不再运行已迁移的控制器,因此不参与迁移。 | ||
|
||
请参阅 [云控制器管理器管理](/zh/docs/tasks/administer-cluster/running-cloud-controller/) | ||
了解有关如何部署 `cloud-controller-manager` 的更多详细信息。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更多细节。
现在,控制平面包含 N 和 N + 1 版本的节点。 | ||
N 版本的节点仅运行 `kube-controller-manager` ,而 N + 1 版本的节点同时运行 `kube-controller-manager` 和 `cloud-controller-manager`。 | ||
根据配置所指定,已迁移的控制器在 N 版本的 `kube-controller-manager` 或版本 N + 1 的 `cloud-controller-manager` 下运行, | ||
具体取决于哪个控制器管理器拥有迁移租约。任何控制器都不会在任何时候在两个控制器管理器下运行。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
任何时候都不存在一个控制器在两个控制器管理器下运行。
具体取决于哪个控制器管理器拥有迁移租约。任何控制器都不会在任何时候在两个控制器管理器下运行。 | ||
|
||
以滚动的方式创建一个新的版本为 N + 1 的控制平面节点,并将 N + 1 版本中的一个关闭,直到控制平面仅包含版本为 N + 1 的节点。 | ||
如果需要从版本 N + 1 到 N 的回滚,则将启用了针对 `kube-controller-manager` 的领导者迁移的版本N的节点添加回控制平面,每次替换版本 N + 1 的一个,直到只有节点为止版本N。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果需要从 N + 1 版本回滚到 N 版本,则将启用了领导者迁移的 kube-controller-manager
且版本为 N 的节点添加回控制平面,每次替换 N + 1 版本的一个,直到只有 N 版本的节点为止。
<!-- | ||
- Read the [Controller Manager Leader Migration](https://github.com/kubernetes/enhancements/tree/master/keps/sig-cloud-provider/2436-controller-manager-leader-migration) enhancement proposal | ||
--> | ||
-阅读 [领导者迁移控制器管理器](https://github.com/kubernetes/enhancements/tree/master/keps/sig-cloud-provider/2436-controller-manager-leader-migration) 改进建议 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
阅读领导者迁移控制器管理器改进建议
@howieyuen 十分感谢,已修改 |
/lgtm |
LGTM label has been added. Git tree hash: bda27505dc77d19aab3b26f54d6a9a3739ef5e86
|
--> | ||
### (可选)禁用领导者迁移 {#disable-leader-migration} | ||
|
||
现在,控制平面已经升级,可以同时运行 N + 1 版本的 `kube-controller-manager` 和 `cloud-controller-manager` 了。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在,控制平面已经升级,可以同时运行 N + 1 版本的 `kube-controller-manager` 和 `cloud-controller-manager` 了。 | |
现在,控制平面已经升级,可以同时运行 N+1 版本的 `kube-controller-manager` 和 `cloud-controller-manager` 了。 |
### (可选)禁用领导者迁移 {#disable-leader-migration} | ||
|
||
现在,控制平面已经升级,可以同时运行 N + 1 版本的 `kube-controller-manager` 和 `cloud-controller-manager` 了。 | ||
领导者迁移已经完成工作,可以安全地禁用以节省一个租约资源。保证将来回滚重新启用领导者迁移的安全性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
领导者迁移已经完成工作,可以安全地禁用以节省一个租约资源。保证将来回滚重新启用领导者迁移的安全性。 | |
领导者迁移已经完成工作,可以安全地禁用以节省一个 Lease 资源。 | |
在将来可以安全地重新启用领导者迁移以完成回滚。 |
--> | ||
### 升级控制平面 | ||
|
||
现在,控制平面包含 N 和 N + 1 版本的节点。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在,控制平面包含 N 和 N + 1 版本的节点。 | |
现在,控制平面包含 N 和 N+1 版本的节点。 |
### 升级控制平面 | ||
|
||
现在,控制平面包含 N 和 N + 1 版本的节点。 | ||
N 版本的节点仅运行 `kube-controller-manager`,而 N + 1 版本的节点同时运行 `kube-controller-manager` 和 `cloud-controller-manager`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N 版本的节点仅运行 `kube-controller-manager`,而 N + 1 版本的节点同时运行 `kube-controller-manager` 和 `cloud-controller-manager`。 | |
N 版本的节点仅运行 `kube-controller-manager`,而 N+1 版本的节点同时运行 | |
`kube-controller-manager` 和 `cloud-controller-manager`。 |
|
||
现在,控制平面包含 N 和 N + 1 版本的节点。 | ||
N 版本的节点仅运行 `kube-controller-manager`,而 N + 1 版本的节点同时运行 `kube-controller-manager` 和 `cloud-controller-manager`。 | ||
根据配置所指定,已迁移的控制器在 N 版本的 `kube-controller-manager` 或版本 N + 1 的 `cloud-controller-manager` 下运行, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
根据配置所指定,已迁移的控制器在 N 版本的 `kube-controller-manager` 或版本 N + 1 的 `cloud-controller-manager` 下运行, | |
根据配置所指定,已迁移的控制器在 N 版本的 `kube-controller-manager` 或 N+1 版本的 | |
`cloud-controller-manager` 下运行, |
- `--enable-leader-migration` 在控制器管理器上启用领导者迁移 | ||
- `--leader-migration-config=/etc/leadermigration.conf` 设置配置文件 | ||
|
||
在每个节点上重新启动 `kube-controller-manager`。目前,`kube-controller-manager` 已启用领导者迁移,并准备进行迁移。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在每个节点上重新启动 `kube-controller-manager`。目前,`kube-controller-manager` 已启用领导者迁移,并准备进行迁移。 | |
在每个节点上重新启动 `kube-controller-manager`。这时,`kube-controller-manager` | |
已启用领导者迁移,并准备进行迁移。 |
--> | ||
### 部署云控制器管理器 | ||
|
||
在 N + 1 版本中,控制器到管理器分配的期望状态可以由新的配置文件表示,如下所示。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 N + 1 版本中,控制器到管理器分配的期望状态可以由新的配置文件表示,如下所示。 | |
在 N+1 版本中,控制器到管理器分配的期望状态可以由新的配置文件表示,如下所示。 |
for more detail on how to deploy `cloud-controller-manager`. | ||
--> | ||
|
||
当创建 N + 1 版本的控制平面节点时,应将内容部署到 `/etc/leadermigration.conf`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
当创建 N + 1 版本的控制平面节点时,应将内容部署到 `/etc/leadermigration.conf`。 | |
当创建 N+1 版本的控制平面节点时,应将内容部署到 `/etc/leadermigration.conf`。 |
|
||
使用已更新的 `cloud-controller-manager` 清单创建一个新的 N + 1 版本的控制平面节点。 | ||
并且没有设置 `kube-controller-manager` 的 `--cloud-provider` 标志。 | ||
N + 1 版本的 `kube-controller-manager` 不能启用领导者迁移, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N + 1 版本的 `kube-controller-manager` 不能启用领导者迁移, | |
N+1 版本的 `kube-controller-manager` 不能启用领导者迁移, |
类似地,添加 `--feature-gates=ControllerManagerLeaderMigration=true`、`--enable-leader-migration` | ||
和 `--leader-migration-config=/etc/leadermigration.conf` 到 `cloud-controller-manager` 的参数中。 | ||
|
||
使用已更新的 `cloud-controller-manager` 清单创建一个新的 N + 1 版本的控制平面节点。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用已更新的 `cloud-controller-manager` 清单创建一个新的 N + 1 版本的控制平面节点。 | |
使用已更新的 `cloud-controller-manager` 清单创建一个新的 N+1 版本的控制平面节点。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it
Thanks. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tengqm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks |
LGTM label has been added. Git tree hash: 781d5ac05fe31bb4063fc604e89051ac595b6715
|
translate content/zh/docs/tasks/administer-cluster/controller-manager-leader-migration.md