Skip to content

Commit 5e83013

Browse files
authored
Merge pull request #35737 from windsonsea/blog124
[zh-cn] sync 2022-08-04-kubernetes-1.25-deprecations-and-removals.md
2 parents fb5f25b + c88ebfb commit 5e83013

File tree

1 file changed

+195
-0
lines changed

1 file changed

+195
-0
lines changed
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
---
2+
layout: blog
3+
title: "Kubernetes 1.25 的移除说明和主要变更"
4+
date: 2022-08-04
5+
slug: upcoming-changes-in-kubernetes-1-25
6+
---
7+
<!--
8+
layout: blog
9+
title: "Kubernetes Removals and Major Changes In 1.25"
10+
date: 2022-08-04
11+
slug: upcoming-changes-in-kubernetes-1-25
12+
-->
13+
14+
<!--
15+
**Authors**: Kat Cosgrove, Frederico Muñoz, Debabrata Panigrahi
16+
-->
17+
**作者**:Kat Cosgrove、Frederico Muñoz、Debabrata Panigrahi
18+
19+
<!--
20+
As Kubernetes grows and matures, features may be deprecated, removed, or replaced with improvements
21+
for the health of the project. Kubernetes v1.25 includes several major changes and one major removal.
22+
-->
23+
随着 Kubernetes 成长和日趋成熟,为了此项目的健康发展,某些功能特性可能会被弃用、移除或替换为优化过的功能特性。
24+
Kubernetes v1.25 包括几个主要变更和一个主要移除。
25+
26+
<!--
27+
## The Kubernetes API Removal and Deprecation process
28+
29+
The Kubernetes project has a well-documented [deprecation policy](/docs/reference/using-api/deprecation-policy/) for features. This policy states that stable APIs may only be deprecated when a newer, stable version of that same API is available and that APIs have a minimum lifetime for each stability level. A deprecated API is one that has been marked for removal in a future Kubernetes release; it will continue to function until removal (at least one year from the deprecation), but usage will result in a warning being displayed. Removed APIs are no longer available in the current version, at which point you must migrate to using the replacement.
30+
-->
31+
## Kubernetes API 移除和弃用流程 {#the-kubernetes-api-removal-and-deprecation-process}
32+
33+
Kubernetes 项目对功能特性有一个文档完备的[弃用策略](/zh-cn/docs/reference/using-api/deprecation-policy/)
34+
该策略规定,只有当较新的、稳定的相同 API 可用时,原有的稳定 API 才可能被弃用,每个稳定级别的 API 都有一个最短的生命周期。
35+
弃用的 API 指的是已标记为将在后续发行某个 Kubernetes 版本时移除的 API;
36+
移除之前该 API 将继续发挥作用(从弃用起至少一年时间),但使用时会显示一条警告。
37+
移除的 API 将在当前版本中不再可用,此时你必须迁移以使用替换的 API。
38+
39+
<!--
40+
* Generally available (GA) or stable API versions may be marked as deprecated but must not be removed within a major version of Kubernetes.
41+
* Beta or pre-release API versions must be supported for 3 releases after deprecation.
42+
* Alpha or experimental API versions may be removed in any release without prior deprecation notice.
43+
-->
44+
* 正式发布(GA)或稳定的 API 版本可能被标记为已弃用,但只有在 Kubernetes 大版本更新时才会移除。
45+
* 测试版(Beta)或预发布 API 版本在弃用后必须支持 3 个版本。
46+
* Alpha 或实验性 API 版本可能会在任何版本中被移除,恕不另行通知。
47+
48+
<!--
49+
Whether an API is removed as a result of a feature graduating from beta to stable or because that API simply did not succeed, all removals comply with this deprecation policy. Whenever an API is removed, migration options are communicated in the documentation.
50+
-->
51+
无论一个 API 是因为某功能特性从 Beta 进入稳定阶段而被移除,还是因为该 API 根本没有成功,
52+
所有移除均遵从上述弃用策略。无论何时移除一个 API,文档中都会列出迁移选项。
53+
54+
<!--
55+
## A Note About PodSecurityPolicy
56+
57+
In Kubernetes v1.25, we will be removing PodSecurityPolicy [after its deprecation in v1.21](/blog/2021/04/06/podsecuritypolicy-deprecation-past-present-and-future/). PodSecurityPolicy has served us honorably, but its complex and often confusing usage necessitated changes, which unfortunately would have been breaking changes. To address this, it is being removed in favor of a replacement, Pod Security Admission, which is graduating to stable in this release as well. If you are currently relying on PodSecurityPolicy, follow the instructions for [migration to Pod Security Admission](/docs/tasks/configure-pod-container/migrate-from-psp/).
58+
-->
59+
## 有关 PodSecurityPolicy 的说明 {#a-note-about-podsecuritypolicy}
60+
61+
[继 PodSecurityPolicy 在 v1.21 弃用后](/blog/2021/04/06/podsecuritypolicy-deprecation-past-present-and-future/)
62+
Kubernetes v1.25 将移除 PodSecurityPolicy。PodSecurityPolicy 曾光荣地为我们服务,
63+
但由于其复杂和经常令人困惑的使用方式,让大家觉得有必要进行修改,但很遗憾这种修改将会是破坏性的。
64+
为此我们移除了 PodSecurityPolicy,取而代之的是 Pod Security Admission(即 PodSecurity 安全准入控制器),
65+
后者在本次发行中也进入了稳定阶段。
66+
如果你目前正依赖 PodSecurityPolicy,请遵循指示说明[迁移到 PodSecurity 准入控制器](/zh-cn/docs/tasks/configure-pod-container/migrate-from-psp/)
67+
68+
<!--
69+
## Major Changes for Kubernetes v1.25
70+
71+
Kubernetes v1.25 includes several major changes, in addition to the removal of PodSecurityPolicy.
72+
73+
### [CSI Migration](https://github.com/kubernetes/enhancements/issues/625)
74+
75+
The effort to move the in-tree volume plugins to out-of-tree CSI drivers continues, with the core CSI Migration feature going GA in v1.25. This is an important step towards removing the in-tree volume plugins entirely.
76+
-->
77+
## Kubernetes v1.25 的主要变更 {#major-changes-for-kubernetes-v1.25}
78+
79+
Kubernetes v1.25 除了移除 PodSecurityPolicy 之外,还包括以下几个主要变更。
80+
81+
### [CSI Migration](https://github.com/kubernetes/enhancements/issues/625)
82+
83+
将树内卷插件迁移到树外 CSI 驱动的努力还在继续,核心的 CSI Migration 特性在 v1.25 进入 GA 阶段。
84+
对于全面移除树内卷插件而言,这是重要的一步。
85+
86+
<!--
87+
### Volume Plugin Deprecations and Removals
88+
89+
Several volume are being deprecated or removed.
90+
91+
[GlusterFS will be deprecated in v1.25](https://github.com/kubernetes/enhancements/issues/3446). While a CSI driver was built for it, it has not been maintained. The possibility of migration to a compatible CSI driver [was discussed](https://github.com/kubernetes/kubernetes/issues/100897), but a decision was ultimately made to begin the deprecation of the GlusterFS plugin from in-tree drivers. The [Portworx in-tree volume plugin](https://github.com/kubernetes/enhancements/issues/2589) is also being deprecated with this release. The Flocker, Quobyte, and StorageOS in-tree volume plugins are being removed.
92+
-->
93+
### 卷插件弃用和移除 {#volume-plugin-deprecation-and-removals}
94+
95+
若干卷将被弃用或移除。
96+
97+
[GlusterFS 将在 v1.25](https://github.com/kubernetes/enhancements/issues/3446) 中被弃用。
98+
虽然为其构建了 CSI 驱动,但未曾得到维护。
99+
社区[曾讨论](https://github.com/kubernetes/kubernetes/issues/100897)迁移到一个兼容 CSI 驱动的可能性,
100+
但最终决定开始从树内驱动中弃用 GlusterFS 插件。
101+
本次发行还会弃用 [Portworx 树内卷插件](https://github.com/kubernetes/enhancements/issues/2589)
102+
Flocker、Quobyte 和 StorageOS 树内卷插件将被移除。
103+
104+
<!--
105+
### [Declare Unsupported vSphere Versions](https://github.com/kubernetes/kubernetes/pull/111255)
106+
107+
From Kubernetes v1.25, the in-tree vSphere volume driver will not support any vSphere release before 7.0u2. Check the v1.25 detailed release notes for more advice on how to handle this.
108+
-->
109+
### [声明不支持的 vSphere 版本](https://github.com/kubernetes/kubernetes/pull/111255)
110+
111+
从 Kubernetes v1.25 开始,树内 vSphere 卷驱动将不支持任何早于 7.0u2 的 vSphere 版本。
112+
查阅 v1.25 详细发行说明,了解如何处理这种状况的更多建议。
113+
114+
<!--
115+
### [Signing Release Artifacts](https://github.com/kubernetes/enhancements/issues/3031)
116+
117+
An additional step in improving the security posture of the release process, the signing of Kubernetes release artifacts will graduate to Beta in this release. This is in line with the proposed enhancement of targeting SLSA Level 3 compliance for the Kubernetes release process.
118+
-->
119+
### [签署发行工件](https://github.com/kubernetes/enhancements/issues/3031)
120+
121+
作为改善发行过程安全状况的附加步骤,Kubernetes 发行工件的签署将在本次发行中进入 Beta 阶段。
122+
这与提议的加强 Kubernetes 发行流程的 SLSA 3 级合规性的目标相一致。
123+
124+
<!--
125+
### [Support for cgroup v2 Graduating to Stable](https://github.com/kubernetes/enhancements/issues/2254)
126+
127+
The new kernel cgroups v2 API was declared stable more than two years ago, and in this release we're taking solid steps towards full adoption of it. While cgroup v1 will continue to be supported, this change makes us ready to deal with the eventual deprecation of cgroup v1 and its replacement by cgroup v2.
128+
-->
129+
### [对 cgroup v2 的支持进入稳定阶段](https://github.com/kubernetes/enhancements/issues/2254)
130+
131+
新的内核 cgroups v2 API 在两年多前就被宣布进入稳定阶段。
132+
在本次发行中,我们又为全面采用此 API 迈出了坚实的步伐。
133+
虽然还会继续支持 cgroup v1,但这一变更使我们准备好应对 cgroup v1 的最终弃用并被 cgroup v2 取代。
134+
135+
<!--
136+
### [Cleaning up IPTables Chain Ownership](https://github.com/kubernetes/enhancements/issues/3178)
137+
138+
From the Kubernetes 1.25 release, the iptables chains created by Kubernetes will only support for internal Kubernetes use cases. Starting with v1.25, the Kubelet will gradually move towards not creating the following iptables chains in the `nat` table:
139+
-->
140+
### [清理 IPTables 链的所有权](https://github.com/kubernetes/enhancements/issues/3178)
141+
142+
从 Kubernetes 1.25 版本开始,Kubernetes 创建的 iptables 链将仅支持 Kubernetes 内部的使用场景。
143+
从 v1.25 开始,Kubelet 将逐渐迁移为不在 `nat` 表中创建以下 iptables 链:
144+
145+
- `KUBE-MARK-DROP`
146+
- `KUBE-MARK-MASQ`
147+
- `KUBE-POSTROUTING`
148+
149+
<!--
150+
This change will be phased in via the `IPTablesCleanup` feature gate.
151+
-->
152+
此项变更将通过 `IPTablesCleanup` 特性门控分阶段完成。
153+
154+
<!--
155+
## Looking ahead
156+
157+
The official [list of API removals planned for Kubernetes 1.26](/docs/reference/using-api/deprecation-guide/#v1-26) is:
158+
159+
* The beta FlowSchema and PriorityLevelConfiguration APIs (flowcontrol.apiserver.k8s.io/v1beta1)
160+
* The beta HorizontalPodAutoscaler API (autoscaling/v2beta2)
161+
-->
162+
## 展望未来 {#looking-ahead}
163+
164+
[Kubernetes 1.26 计划移除的 API 的正式列表](/zh-cn/docs/reference/using-api/deprecation-guide/#v1-26)为:
165+
166+
* Beta 版 FlowSchema 和 PriorityLevelConfiguration API(flowcontrol.apiserver.k8s.io/v1beta1)
167+
* Beta 版 HorizontalPodAutoscaler API(autoscaling/v2beta2)
168+
169+
<!--
170+
### Want to know more?
171+
Deprecations are announced in the Kubernetes release notes. You can see the announcements of pending deprecations in the release notes for:
172+
-->
173+
### 了解更多 {#want-to-know-more}
174+
175+
Kubernetes 发行说明公布了弃用信息。你可以在以下版本的发行说明中查看待弃用特性的公告:
176+
177+
<!--
178+
* [Kubernetes 1.21](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.21.md#deprecation)
179+
* [Kubernetes 1.22](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.22.md#deprecation)
180+
* [Kubernetes 1.23](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.23.md#deprecation)
181+
* [Kubernetes 1.24](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.24.md#deprecation)
182+
* We will formally announce the deprecations that come with [Kubernetes 1.25](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.25.md#deprecation) as part of the CHANGELOG for that release.
183+
-->
184+
* [Kubernetes 1.21](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.21.md#deprecation)
185+
* [Kubernetes 1.22](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.22.md#deprecation)
186+
* [Kubernetes 1.23](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.23.md#deprecation)
187+
* [Kubernetes 1.24](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.24.md#deprecation)
188+
* 我们将正式宣布 [Kubernetes 1.25](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.25.md#deprecation)
189+
的弃用信息,作为该版本 CHANGELOG 的一部分。
190+
191+
<!--
192+
For information on the process of deprecation and removal, check out the official Kubernetes [deprecation policy](/docs/reference/using-api/deprecation-policy/#deprecating-parts-of-the-api) document.
193+
-->
194+
有关弃用和移除流程的信息,请查阅 Kubernetes
195+
官方[弃用策略](/zh-cn/docs/reference/using-api/deprecation-policy/#deprecating-parts-of-the-api)文档。

0 commit comments

Comments
 (0)