[zh]Update tasks pages(part-5) for links with '/zh/' prefix, using new prefix '/zh-cn/'
This commit is contained in:
+12
-12
@@ -27,7 +27,7 @@ into the Kubernetes API by creating a
|
||||
本页展示如何使用
|
||||
[CustomResourceDefinition](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#customresourcedefinition-v1-apiextensions-k8s-io)
|
||||
将
|
||||
[定制资源(Custom Resource)](/zh/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
|
||||
[定制资源(Custom Resource)](/zh-cn/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
|
||||
安装到 Kubernetes API 上。
|
||||
|
||||
## {{% heading "prerequisites" %}}
|
||||
@@ -831,7 +831,7 @@ CustomResourceDefinition and migrating your objects from one version to another.
|
||||
|
||||
关于如何为你的 CustomResourceDefinition 提供多个版本的支持,以及如何将你的对象
|
||||
从一个版本迁移到另一个版本, 详细信息可参阅
|
||||
[定制资源定义的版本](/zh/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/)。
|
||||
[定制资源定义的版本](/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/)。
|
||||
|
||||
<!-- discussion -->
|
||||
|
||||
@@ -912,7 +912,7 @@ can add additional validation using
|
||||
定制资源是通过
|
||||
[OpenAPI v3 模式定义](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject)
|
||||
来执行合法性检查的,当启用[验证规则特性](#validation-rules)时,通过 `x-kubernetes-validations` 验证,
|
||||
你可以通过使用[准入控制 Webhook](/zh/docs/reference/access-authn-authz/admission-controllers/#validatingadmissionwebhook)
|
||||
你可以通过使用[准入控制 Webhook](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#validatingadmissionwebhook)
|
||||
来添加额外的合法性检查逻辑。
|
||||
|
||||
<!--
|
||||
@@ -971,7 +971,7 @@ enabled, which is the case automatically for many clusters for beta features).
|
||||
就 `apiextensions.k8s.io/v1` 组的 CustomResourceDefinitions,这一条件是满足的。
|
||||
设置默认值的功能特性从 1.17 开始正式发布。该特性在 1.16 版本中处于
|
||||
Beta 状态,要求 `CustomResourceDefaulting`
|
||||
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)
|
||||
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
|
||||
被启用。对于大多数集群而言,Beta 状态的特性门控默认都是自动启用的。
|
||||
|
||||
<!--
|
||||
@@ -1138,7 +1138,7 @@ This feature is only available if the schema is a
|
||||
[structural schema](#specifying-a-structural-schema).
|
||||
-->
|
||||
验证规则从 1.23 开始处于 Alpha 状态,
|
||||
当 `CustomResourceValidationExpressions` [特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)被启用时,
|
||||
当 `CustomResourceValidationExpressions` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)被启用时,
|
||||
验证定制资源。这个功能只有在模式是[结构化的模式](#specifying-a-structural-schema)时才可用。
|
||||
|
||||
<!--
|
||||
@@ -1608,7 +1608,7 @@ types](https://swagger.io/specification/#data-types), [Kubernetes Structural Sch
|
||||
-->
|
||||
参考:[CEL 类型](https://github.com/google/cel-spec/blob/v0.6.0/doc/langdef.md#values),
|
||||
[OpenAPI 类型](https://swagger.io/specification/#data-types),
|
||||
[Kubernetes 结构化模式](/zh/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema)。
|
||||
[Kubernetes 结构化模式](/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema)。
|
||||
|
||||
<!--
|
||||
#### Validation functions {#available-validation-functions}
|
||||
@@ -2090,10 +2090,10 @@ The [kubectl](/docs/reference/kubectl/) command-line tool consumes the published
|
||||
CustomResourceDefinition 的[结构化的](#specifying-a-structural-schema)、
|
||||
[启用了剪裁的](#preserving-unknown-fields) [OpenAPI v3 合法性检查模式](#validation)
|
||||
会在 Kubernetes API 服务器上作为
|
||||
[OpenAPI v2 规约](/zh/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions)
|
||||
[OpenAPI v2 规约](/zh-cn/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions)
|
||||
的一部分发布出来。
|
||||
|
||||
[kubectl](/zh/docs/reference/kubectl/) 命令行工具会基于所发布的模式定义来执行客户端的合法性检查(`kubectl create` 和 `kubectl apply`),为定制资源的模式定义提供解释(`kubectl explain`)。
|
||||
[kubectl](/zh-cn/docs/reference/kubectl/) 命令行工具会基于所发布的模式定义来执行客户端的合法性检查(`kubectl create` 和 `kubectl apply`),为定制资源的模式定义提供解释(`kubectl explain`)。
|
||||
所发布的模式还可被用于其他目的,例如生成客户端或者生成文档。
|
||||
|
||||
<!--
|
||||
@@ -2106,7 +2106,7 @@ valid OpenAPI schemas that it doesn't understand. The conversion won't modify th
|
||||
and therefore won't affect [validation](#validation) in the API server.
|
||||
-->
|
||||
OpenAPI v3 合法性检查模式定义会被转换为 OpenAPI v2 模式定义,并出现在
|
||||
[OpenAPI v2 规范](/zh/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions)
|
||||
[OpenAPI v2 规范](/zh-cn/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions)
|
||||
的 `definitions` 和 `paths` 字段中。
|
||||
|
||||
在转换过程中会发生以下修改,目的是保持与 1.13 版本以前的 kubectl 工具兼容。
|
||||
@@ -2567,7 +2567,7 @@ kubectl get crontabs my-new-cron-object -o jsonpath='{.spec.replicas}'
|
||||
You can use a [PodDisruptionBudget](/docs/tasks/run-application/configure-pdb/) to protect custom
|
||||
resources that have the scale subresource enabled.
|
||||
-->
|
||||
你可以使用 [PodDisruptionBudget](/zh/docs/tasks/run-application/configure-pdb/)
|
||||
你可以使用 [PodDisruptionBudget](/zh-cn/docs/tasks/run-application/configure-pdb/)
|
||||
来保护启用了 scale 子资源的定制资源。
|
||||
|
||||
<!--
|
||||
@@ -2694,7 +2694,7 @@ crontabs/my-new-cron-object 3s
|
||||
* Serve [multiple versions](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/) of a
|
||||
CustomResourceDefinition.
|
||||
-->
|
||||
* 阅读了解[定制资源](/zh/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
|
||||
* 阅读了解[定制资源](/zh-cn/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
|
||||
* 参阅 [CustomResourceDefinition](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#customresourcedefinition-v1-apiextensions-k8s-io)
|
||||
* 参阅支持 CustomResourceDefinition 的[多个版本](/zh/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/)
|
||||
* 参阅支持 CustomResourceDefinition 的[多个版本](/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user