Skip to content

Commit 64dc81a

Browse files
author
zhuzhenghao
committed
[zh] resync page cloud-controller
1 parent 69170a9 commit 64dc81a

File tree

1 file changed

+54
-49
lines changed

1 file changed

+54
-49
lines changed

content/zh-cn/docs/concepts/architecture/cloud-controller.md

Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ hosts running inside your tenancy with the cloud provider. The node controller p
8383

8484
<!--
8585
1. Update a Node object with the corresponding server's unique identifier obtained from the cloud provider API.
86-
2. Annotating and labelling the Node object with cloud-specific information, such as the region the node
86+
1. Annotating and labelling the Node object with cloud-specific information, such as the region the node
8787
is deployed into and the resources (CPU, memory, etc) that it has available.
88-
3. Obtain the node's hostname and network addresses.
89-
4. Verifying the node's health. In case a node becomes unresponsive, this controller checks with
88+
1. Obtain the node's hostname and network addresses.
89+
1. Verifying the node's health. In case a node becomes unresponsive, this controller checks with
9090
your cloud provider's API to see if the server has been deactivated / deleted / terminated.
9191
If the node has been deleted from the cloud, the controller deletes the Node object from your Kubernetes
9292
cluster.
9393
-->
9494
1. 使用从云平台 API 获取的对应服务器的唯一标识符更新 Node 对象;
9595
2. 利用特定云平台的信息为 Node 对象添加注解和标签,例如节点所在的区域
96-
(Region)和所具有的资源(CPU、内存等等);
96+
(Region)和所具有的资源(CPU、内存等等);
9797
3. 获取节点的网络地址和主机名;
9898
4. 检查节点的健康状况。如果节点无响应,控制器通过云平台 API
9999
查看该节点是否已从云中禁用、删除或终止。如果节点已从云中删除,
@@ -159,13 +159,13 @@ to read and modify Node objects.
159159

160160
`v1/Node`
161161

162-
- Get
163-
- List
164-
- Create
165-
- Update
166-
- Patch
167-
- Watch
168-
- Delete
162+
- get
163+
- list
164+
- create
165+
- update
166+
- patch
167+
- watch
168+
- delete
169169

170170
<!--
171171
### Route controller {#authorization-route-controller}
@@ -180,69 +180,66 @@ routes appropriately. It requires Get access to Node objects.
180180

181181
`v1/Node`
182182

183-
- Get
183+
- get
184184

185185
<!--
186186
### Service controller {#authorization-service-controller}
187187
188-
The service controller listens to Service object Create, Update and Delete events and then configures Endpoints for those Services appropriately (for EndpointSlices, the kube-controller-manager manages these on demand).
188+
The service controller watches for Service object **create**, **update** and **delete** events and then
189+
configures Endpoints for those Services appropriately (for EndpointSlices, the
190+
kube-controller-manager manages these on demand).
189191
190-
To access Services, it requires List, and Watch access. To update Services, it requires Patch and Update access.
192+
To access Services, it requires **list**, and **watch** access. To update Services, it requires
193+
**patch** and **update** access.
191194
192-
To set up Endpoints resources for the Services, it requires access to Create, List, Get, Watch, and Update.
195+
To set up Endpoints resources for the Services, it requires access to **create**, **list**,
196+
**get**, **watch**, and **update**.
193197
-->
194198
### 服务控制器 {#authorization-service-controller}
195199

196-
服务控制器监测 Service 对象的 Create、Update 和 Delete 事件,并配置对应服务的 Endpoints 对象
200+
服务控制器监测 Service 对象的 **create****update****delete** 事件,
201+
并配置对应服务的 Endpoints 对象
197202
(对于 EndpointSlices,kube-controller-manager 按需对其进行管理)。
198203

199-
为了访问 Service 对象,它需要 ListWatch 访问权限。
200-
为了更新 Service 对象,它需要 PatchUpdate 访问权限。
204+
为了访问 Service 对象,它需要 **list****watch** 访问权限。
205+
为了更新 Service 对象,它需要 **patch****update** 访问权限。
201206

202207
为了能够配置 Service 对应的 Endpoints 资源,
203-
它需要 Create、List、Get、WatchUpdate 等访问权限。
208+
它需要 **create****list****get****watch****update** 等访问权限。
204209

205210
`v1/Service`
206211

207-
- List
208-
- Get
209-
- Watch
210-
- Patch
211-
- Update
212+
- list
213+
- get
214+
- watch
215+
- patch
216+
- update
212217

213218
<!--
214219
### Others {#authorization-miscellaneous}
215220
216-
The implementation of the core of the cloud controller manager requires access to create Event objects, and to ensure secure operation, it requires access to create ServiceAccounts.
217-
218-
`v1/Event`:
219-
220-
- Create
221-
- Patch
222-
- Update
223-
224-
`v1/ServiceAccount`:
225-
226-
- Create
227-
228-
The {{< glossary_tooltip term_id="rbac" text="RBAC" >}} ClusterRole for the cloud
229-
controller manager looks like:
221+
The implementation of the core of the cloud controller manager requires access to create Event
222+
objects, and to ensure secure operation, it requires access to create ServiceAccounts.
230223
-->
231224
### 其他 {#authorization-miscellaneous}
232225

233226
在云控制器管理器的实现中,其核心部分需要创建 Event 对象的访问权限,
234227
并创建 ServiceAccount 资源以保证操作安全性的权限。
235228

236-
`v1/Event`
229+
`v1/Event`:
237230

238-
- Create
239-
- Patch
240-
- Update
231+
- create
232+
- patch
233+
- update
241234

242-
`v1/ServiceAccount`
235+
`v1/ServiceAccount`:
243236

244-
- Create
237+
- create
245238

239+
<!--
240+
The {{< glossary_tooltip term_id="rbac" text="RBAC" >}} ClusterRole for the cloud
241+
controller manager looks like:
242+
-->
246243
用于云控制器管理器 {{< glossary_tooltip term_id="rbac" text="RBAC" >}}
247244
的 ClusterRole 如下例所示:
248245

@@ -314,7 +311,8 @@ rules:
314311
[Cloud Controller Manager Administration](/docs/tasks/administer-cluster/running-cloud-controller/#cloud-controller-manager)
315312
has instructions on running and managing the cloud controller manager.
316313
317-
To upgrade a HA control plane to use the cloud controller manager, see [Migrate Replicated Control Plane To Use Cloud Controller Manager](/docs/tasks/administer-cluster/controller-manager-leader-migration/).
314+
To upgrade a HA control plane to use the cloud controller manager, see
315+
[Migrate Replicated Control Plane To Use Cloud Controller Manager](/docs/tasks/administer-cluster/controller-manager-leader-migration/).
318316
319317
Want to know how to implement your own cloud controller manager, or extend an existing project?
320318
-->
@@ -327,17 +325,24 @@ Want to know how to implement your own cloud controller manager, or extend an ex
327325
想要了解如何实现自己的云控制器管理器,或者对现有项目进行扩展么?
328326
329327
<!--
330-
The cloud controller manager uses Go interfaces to allow implementations from any cloud to be plugged in. Specifically, it uses the `CloudProvider` interface defined in [`cloud.go`](https://github.com/kubernetes/cloud-provider/blob/release-1.21/cloud.go#L42-L69) from [kubernetes/cloud-provider](https://github.com/kubernetes/cloud-provider).
328+
The cloud controller manager uses Go interfaces to allow implementations from any cloud to be plugged in.
329+
Specifically, it uses the `CloudProvider` interface defined in
330+
[`cloud.go`](https://github.com/kubernetes/cloud-provider/blob/release-1.26/cloud.go#L43-L69) from
331+
[kubernetes/cloud-provider](https://github.com/kubernetes/cloud-provider).
331332
-->
332333
云控制器管理器使用 Go 语言的接口,从而使得针对各种云平台的具体实现都可以接入。
333334
其中使用了在 [kubernetes/cloud-provider](https://github.com/kubernetes/cloud-provider)
334-
项目中 [`cloud.go`](https://github.com/kubernetes/cloud-provider/blob/release-1.21/cloud.go#L42-L69)
335+
项目中 [`cloud.go`](https://github.com/kubernetes/cloud-provider/blob/release-1.26/cloud.go#L43-L69)
335336
文件所定义的 `CloudProvider` 接口。
336337

337338
<!--
338-
The implementation of the shared controllers highlighted in this document (Node, Route, and Service), and some scaffolding along with the shared cloudprovider interface, is part of the Kubernetes core. Implementations specific to cloud providers are outside the core of Kubernetes and implement the `CloudProvider` interface.
339+
The implementation of the shared controllers highlighted in this document (Node, Route, and Service),
340+
and some scaffolding along with the shared cloudprovider interface, is part of the Kubernetes core.
341+
Implementations specific to cloud providers are outside the core of Kubernetes and implement the
342+
`CloudProvider` interface.
339343

340-
For more information about developing plugins, see [Developing Cloud Controller Manager](/docs/tasks/administer-cluster/developing-cloud-controller-manager/).
344+
For more information about developing plugins, see
345+
[Developing Cloud Controller Manager](/docs/tasks/administer-cluster/developing-cloud-controller-manager/).
341346
-->
342347
本文中列举的共享控制器(节点控制器、路由控制器和服务控制器等)的实现以及其他一些生成具有
343348
CloudProvider 接口的框架的代码,都是 Kubernetes 的核心代码。

0 commit comments

Comments
 (0)