@@ -23,8 +23,8 @@ When APIs evolve, the old API is deprecated and eventually removed.
2323This page contains information you need to know when migrating from
2424deprecated API versions to newer and more stable API versions.
2525-->
26- 随着 Kubernetes API 的演化,APIs 会周期性地被重组或升级。
27- 当 APIs 演化时,老的 API 会被弃用并被最终删除。
26+ 随着 Kubernetes API 的演化,API 会周期性地被重组或升级。
27+ 当 API 演化时,老的 API 会被弃用并被最终删除。
2828本页面包含你在将已弃用 API 版本迁移到新的更稳定的 API 版本时需要了解的知识。
2929
3030<!-- body -->
@@ -105,7 +105,7 @@ The **flowcontrol.apiserver.k8s.io/v1beta1** API version of FlowSchema and Prior
105105* All existing persisted objects are accessible via the new API
106106* No notable changes
107107-->
108- 从 v1.26 版本开始不再提供 ** flowcontrol.apiserver.k8s.io/v1beta1** API 版本的
108+ 从 v1.26 版本开始不再提供 ** flowcontrol.apiserver.k8s.io/v1beta1** API 版本的
109109FlowSchema 和 PriorityLevelConfiguration。
110110
111111* 迁移清单和 API 客户端使用 ** flowcontrol.apiserver.k8s.io/v1beta3** API 版本,
@@ -148,7 +148,7 @@ The **batch/v1beta1** API version of CronJob is no longer served as of v1.25.
148148
149149* 迁移清单和 API 客户端使用 ** batch/v1** API 版本,此 API 从 v1.21 版本开始可用;
150150* 所有的已保存的对象都可以通过新的 API 来访问;
151- * 没有需要额外注意的变更
151+ * 没有需要额外注意的变更。
152152
153153#### EndpointSlice {#endpointslice-v125}
154154
@@ -218,15 +218,14 @@ The **events.k8s.io/v1beta1** API version of Event is no longer served as of v1.
218218<!--
219219The **autoscaling/v2beta1** API version of HorizontalPodAutoscaler is no longer served as of v1.25.
220220
221-
222221* Migrate manifests and API clients to use the **autoscaling/v2** API version, available since v1.23.
223222* All existing persisted objects are accessible via the new API
224223-->
225224从 v1.25 版本开始不再提供 ** autoscaling/v2beta1** API 版本的
226225HorizontalPodAutoscaler。
227226
228227* 迁移清单和 API 客户端使用 ** autoscaling/v2** API 版本,此 API 从 v1.23 版本开始可用;
229- * 所有的已保存的对象都可以通过新的 API 来访问;
228+ * 所有的已保存的对象都可以通过新的 API 来访问。
230229
231230#### PodDisruptionBudget {#poddisruptionbudget-v125}
232231
@@ -244,9 +243,9 @@ The **policy/v1beta1** API version of PodDisruptionBudget is no longer served as
244243* 所有的已保存的对象都可以通过新的 API 来访问;
245244* ** policy/v1** 中需要额外注意的变更有:
246245 * 在 ` policy/v1 ` 版本的 PodDisruptionBudget 中将 ` spec.selector `
247- 设置为空(` {} ` )时会选择名字空间中的所有 Pods (在 ` policy/v1beta1 `
248- 版本中,空的 ` spec.selector ` 不会选择任何 Pods )。如果 ` spec.selector `
249- 未设置,则在两个 API 版本下都不会选择任何 Pods 。
246+ 设置为空(` {} ` )时会选择名字空间中的所有 Pod (在 ` policy/v1beta1 `
247+ 版本中,空的 ` spec.selector ` 不会选择任何 Pod )。如果 ` spec.selector `
248+ 未设置,则在两个 API 版本下都不会选择任何 Pod 。
250249
251250#### PodSecurityPolicy {#psp-v125}
252251
@@ -278,7 +277,7 @@ RuntimeClass in the **node.k8s.io/v1beta1** API version is no longer served as o
278277
279278* 迁移清单和 API 客户端使用 ** node.k8s.io/v1** API 版本,此 API 从 v1.20 版本开始可用;
280279* 所有的已保存的对象都可以通过新的 API 来访问;
281- * 没有需要额外注意的变更
280+ * 没有需要额外注意的变更。
282281
283282### v1.22
284283
@@ -303,7 +302,7 @@ The **admissionregistration.k8s.io/v1beta1** API version of MutatingWebhookConfi
303302* All existing persisted objects are accessible via the new APIs
304303-->
305304* 迁移清单和 API 客户端使用 ** admissionregistration.k8s.io/v1** API 版本,
306- 此 API 从 v1.16 版本开始可用;
305+ 此 API 从 v1.16 版本开始可用;
307306* 所有的已保存的对象都可以通过新的 API 来访问;
308307
309308<!--
@@ -388,7 +387,7 @@ The **apiregistration.k8s.io/v1beta1** API version of APIService is no longer se
388387* 迁移清单和 API 客户端使用 ** apiregistration.k8s.io/v1** API 版本,此 API 从
389388 v1.10 版本开始可用;
390389* 所有的已保存的对象都可以通过新的 API 来访问;
391- * 没有需要额外注意的变更
390+ * 没有需要额外注意的变更。
392391
393392#### TokenReview {#tokenreview-v122}
394393
@@ -403,7 +402,7 @@ The **authentication.k8s.io/v1beta1** API version of TokenReview is no longer se
403402* 迁移清单和 API 客户端使用 ** authentication.k8s.io/v1** API 版本,此 API 从
404403 v1.6 版本开始可用;
405404* 所有的已保存的对象都可以通过新的 API 来访问;
406- * 没有需要额外注意的变更
405+ * 没有需要额外注意的变更。
407406
408407#### SubjectAccessReview resources {#subjectaccessreview-resources-v122}
409408
@@ -424,7 +423,6 @@ SelfSubjectAccessReview、SubjectAccessReview、SelfSubjectRulesReview 不在 v1
424423 * ` spec.group ` 在 v1 版本中被更名为 ` spec.groups `
425424 (补丁 [ #32709 ] ( https://github.com/kubernetes/kubernetes/issues/32709 ) )
426425
427-
428426#### CertificateSigningRequest {#certificatesigningrequest-v122}
429427
430428<!--
@@ -478,7 +476,7 @@ The **coordination.k8s.io/v1beta1** API version of Lease is no longer served as
478476* 迁移清单和 API 客户端使用 ** coordination.k8s.io/v1** API 版本,此 API 从
479477 v1.14 版本开始可用;
480478* 所有的已保存的对象都可以通过新的 API 来访问;
481- * 没有需要额外注意的变更
479+ * 没有需要额外注意的变更。
482480
483481#### Ingress {#ingress-v122}
484482
@@ -503,13 +501,13 @@ The **extensions/v1beta1** and **networking.k8s.io/v1beta1** API versions of Ing
503501 * `pathType` is now required for each specified path. Options are `Prefix`, `Exact`, and `ImplementationSpecific`. To match the undefined `v1beta1` behavior, use `ImplementationSpecific`.
504502-->
505503* 值得注意的变更:
506- * ` spec.backend ` 字段被更名为 ` spec.defaultBackend `
507- * 后端的 ` serviceName ` 字段被更名为 ` service.name `
508- * 数值表示的后端 ` servicePort ` 字段被更名为 ` service.port.number `
509- * 字符串表示的后端 ` servicePort ` 字段被更名为 ` service.port.name `
510- * 对所有要指定的路径,` pathType ` 都成为必需字段。
511- 可选项为 ` Prefix ` 、` Exact ` 和 ` ImplementationSpecific ` 。
512- 要匹配 ` v1beta1 ` 版本中未定义路径类型时的行为,可使用 ` ImplementationSpecific `
504+ * ` spec.backend ` 字段被更名为 ` spec.defaultBackend `
505+ * 后端的 ` serviceName ` 字段被更名为 ` service.name `
506+ * 数值表示的后端 ` servicePort ` 字段被更名为 ` service.port.number `
507+ * 字符串表示的后端 ` servicePort ` 字段被更名为 ` service.port.name `
508+ * 对所有要指定的路径,` pathType ` 都成为必需字段。
509+ 可选项为 ` Prefix ` 、` Exact ` 和 ` ImplementationSpecific ` 。
510+ 要匹配 ` v1beta1 ` 版本中未定义路径类型时的行为,可使用 ` ImplementationSpecific `
513511
514512#### IngressClass {#ingressclass-v122}
515513
@@ -525,8 +523,7 @@ The **networking.k8s.io/v1beta1** API version of IngressClass is no longer serve
525523* 迁移清单和 API 客户端使用 ** networking.k8s.io/v1** API 版本,此 API 从
526524 v1.19 版本开始可用;
527525* 所有的已保存的对象都可以通过新的 API 来访问;
528- * 没有需要额外注意的变更
529-
526+ * 没有需要额外注意的变更。
530527
531528<!--
532529#### RBAC resources {#rbac-resources-v122}
@@ -545,7 +542,7 @@ Role 和 RoleBinding 不在 v1.22 版本中继续提供。
545542* 迁移清单和 API 客户端使用 ** rbac.authorization.k8s.io/v1** API 版本,此 API 从
546543 v1.8 版本开始可用;
547544* 所有的已保存的对象都可以通过新的 API 来访问;
548- * 没有需要额外注意的变更
545+ * 没有需要额外注意的变更。
549546
550547#### PriorityClass {#priorityclass-v122}
551548
@@ -561,7 +558,7 @@ The **scheduling.k8s.io/v1beta1** API version of PriorityClass is no longer serv
561558* 迁移清单和 API 客户端使用 ** scheduling.k8s.io/v1** API 版本,此 API 从
562559 v1.14 版本开始可用;
563560* 所有的已保存的对象都可以通过新的 API 来访问;
564- * 没有需要额外注意的变更
561+ * 没有需要额外注意的变更。
565562
566563<!--
567564#### Storage resources {#storage-resources-v122}
@@ -588,7 +585,7 @@ The **storage.k8s.io/v1beta1** API version of CSIDriver, CSINode, StorageClass,
588585 * StorageClass 从 v1.6 版本开始在 ** storage.k8s.io/v1** 中提供;
589586 * VolumeAttachment 从 v1.13 版本开始在 ** storage.k8s.io/v1** 中提供;
590587* 所有的已保存的对象都可以通过新的 API 来访问;
591- * 没有需要额外注意的变更
588+ * 没有需要额外注意的变更。
592589
593590### v1.16
594591
@@ -609,7 +606,7 @@ The **extensions/v1beta1** API version of NetworkPolicy is no longer served as o
609606
610607* 迁移清单和 API 客户端使用 ** networking.k8s.io/v1** API 版本,此 API 从
611608 v1.8 版本开始可用;
612- * 所有的已保存的对象都可以通过新的 API 来访问;
609+ * 所有的已保存的对象都可以通过新的 API 来访问。
613610
614611#### DaemonSet {#daemonset-v116}
615612
@@ -787,7 +784,7 @@ to automatically convert an existing object:
787784<!--
788785For example, to convert an older Deployment to `apps/v1`, you can run:
789786-->
790- 例如,要将较老的 Deployment 版本转换为 ` apps/v1 ` 版本,你可以运行
787+ 例如,要将较老的 Deployment 版本转换为 ` apps/v1 ` 版本,你可以运行:
791788
792789` kubectl-convert -f ./my-deployment.yaml --output-version apps/v1 `
793790
0 commit comments