You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
你可以使用定制控制器来将特定于某应用的领域知识组织起来,以编码的形式构造对 Kubernetes API 的扩展。
105
101
106
102
<!--
107
103
## Should I add a custom resource to my Kubernetes Cluster?
@@ -364,14 +360,14 @@ CRD 比聚合 API 更容易创建
364
360
<!--
365
361
| CRDs | Aggregated API |
366
362
| --------------------------- | -------------- |
367
-
| Do not require programming. Users can choose any language for a CRD controller. | Requires programming in Go and building binary and image. |
363
+
| Do not require programming. Users can choose any language for a CRD controller. | Requires programming and building binary and image. |
368
364
| No additional service to run; CRDs are handled by API server. | An additional service to create and that could fail. |
369
365
| No ongoing support once the CRD is created. Any bug fixes are picked up as part of normal Kubernetes Master upgrades. | May need to periodically pickup bug fixes from upstream and rebuild and update the Aggregated API server. |
370
366
| No need to handle multiple versions of your API; for example, when you control the client for this resource, you can upgrade it in sync with the API. | You need to handle multiple versions of your API; for example, when developing an extension to share with the world. |
371
367
-->
372
-
|CRDs| 聚合 API |
368
+
|CRD| 聚合 API |
373
369
| --------------------------- | -------------- |
374
-
| 无需编程。用户可选择任何语言来实现 CRD 控制器。 |需要使用 Go 来编程,并构建可执行文件和镜像。 |
370
+
| 无需编程。用户可选择任何语言来实现 CRD 控制器。 |需要编程,并构建可执行文件和镜像。 |
375
371
| 无需额外运行服务;CRD 由 API 服务器处理。 | 需要额外创建服务,且该服务可能失效。 |
376
372
| 一旦 CRD 被创建,不需要持续提供支持。Kubernetes 主控节点升级过程中自动会带入缺陷修复。 | 可能需要周期性地从上游提取缺陷修复并更新聚合 API 服务器。 |
377
373
| 无需处理 API 的多个版本;例如,当你控制资源的客户端时,你可以更新它使之与 API 同步。 | 你需要处理 API 的多个版本;例如,在开发打算与很多人共享的扩展时。 |
@@ -400,7 +396,7 @@ Aggregated APIs offer more advanced API features and customization of other feat
400
396
| Protocol Buffers | The new resource supports clients that want to use Protocol Buffers | No | Yes |
401
397
| OpenAPI Schema | Is there an OpenAPI (swagger) schema for the types that can be dynamically fetched from the server? Is the user protected from misspelling field names by ensuring only allowed fields are set? Are types enforced (in other words, don't put an `int` in a `string` field?) | Yes, based on the [OpenAPI v3.0 validation](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#validation) schema (GA in 1.16). | Yes |
0 commit comments