Skip to content

Commit 493ac17

Browse files
authored
Merge pull request #49235 from windsonsea/k8siot
[zh] Update 2023-08-15-pkgs-k8s-io-introduction.md
2 parents a0c157b + 4ebdc43 commit 493ac17

File tree

1 file changed

+115
-38
lines changed

1 file changed

+115
-38
lines changed

content/zh-cn/blog/_posts/2023-08-15-pkgs-k8s-io-introduction.md

Lines changed: 115 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@ layout: blog
33
title: "pkgs.k8s.io:介绍 Kubernetes 社区自有的包仓库"
44
date: 2023-08-15T20:00:00+0000
55
slug: pkgs-k8s-io-introduction
6+
author: >
7+
Marko Mudrinić (Kubermatic)
8+
translator: >
9+
Wilson Wu (DaoCloud)
610
---
711
<!--
812
layout: blog
913
title: "pkgs.k8s.io: Introducing Kubernetes Community-Owned Package Repositories"
1014
date: 2023-08-15T20:00:00+0000
1115
slug: pkgs-k8s-io-introduction
16+
author: >
17+
Marko Mudrinić (Kubermatic)
1218
-->
1319

14-
<!--
15-
**Author**: Marko Mudrinić (Kubermatic)
16-
-->
17-
**作者**:Marko Mudrinić (Kubermatic)
18-
19-
**译者**:Wilson Wu (DaoCloud)
20-
2120
<!--
2221
On behalf of Kubernetes SIG Release, I am very excited to introduce the
2322
Kubernetes community-owned software
@@ -39,23 +38,25 @@ repositories.
3938
这篇博文包含关于这些新的包仓库的信息、它对最终用户意味着什么以及如何迁移到新仓库。
4039

4140
<!--
42-
**ℹ️ Update (January 12, 2024):** the _**legacy Google-hosted repositories are going
43-
away in January 2024.**_
41+
**ℹ️ Update (March 26, 2024): _the legacy Google-hosted repositories went
42+
away on March 4, 2024. It's not possible to install Kubernetes packages from
43+
the legacy Google-hosted package repositories any longer._**
4444
Check out [the deprecation announcement](/blog/2023/08/31/legacy-package-repository-deprecation/)
4545
for more details about this change.
4646
-->
47-
**ℹ️ 更新(2024 年 1 月 12 日):旧版托管在 Google 的仓库已被弃用,并将于 2024 年 1 月开始被冻结。**
48-
查看[弃用公告](/zh-cn/blog/2023/08/31/legacy-package-repository-deprecation/)了解有关此更改的更多详细信息。
47+
**ℹ️ 更新(2024 年 3 月 26 日):旧版托管在 Google 的仓库于 2024 年 3 月 4 日停用。
48+
你不能再从旧版托管在 Google 的包仓库中安装 Kubernetes 包。**
49+
查看[弃用公告](/zh-cn/blog/2023/08/31/legacy-package-repository-deprecation/)了解本次变更的更多细节。
4950

5051
<!--
5152
## What you need to know about the new package repositories?
5253
-->
5354
## 关于新的包仓库,你需要了解哪些信息? {#what-you-need-to-know-about-the-new-package-repositories}
5455

5556
<!--
56-
_(updated on January 12, 2024)_
57+
_(updated on January 12, 2024 and March 26, 2024)_
5758
-->
58-
**(更新于 2024 年 1 月 12 日)**
59+
**(更新于 2024 年 1 月 12 日和 3 月 26 日)**
5960

6061
<!--
6162
- This is an **opt-in change**; you're required to manually migrate from the
@@ -68,47 +69,63 @@ _(updated on January 12, 2024)_
6869
了解迁移信息和说明。
6970

7071
<!--
71-
- **The legacy Google-hosted package repositories are going away in January 2024.** These repositories
72-
have been **deprecated as of August 31, 2023**, and **frozen as of September 13, 2023**.
72+
- **The legacy Google-hosted package repositories went away on March 4, 2024. It's not possible
73+
to install Kubernetes packages from the legacy Google-hosted package repositories any longer.**
74+
These repositories have been **deprecated as of August 31, 2023**, and **frozen as of September 13, 2023**.
7375
Check out the [deprecation announcement](/blog/2023/08/31/legacy-package-repository-deprecation/)
7476
for more details about this change.
7577
-->
76-
- **旧版托管在 Google 的包仓库于 2024 年 1 月停用。**
78+
- **旧版托管在 Google 的包仓库于 2024 年 3 月 4 日停用。
79+
你不能再从旧版托管在 Google 的包仓库中安装 Kubernetes 包。**
7780
这些仓库**自 2023 年 8 月 31 日起被弃用** ,并**自 2023 年 9 月 13 日被冻结**
7881
有关此变更的更多细节请查阅[弃用公告](/zh-cn/blog/2023/08/31/legacy-package-repository-deprecation/)
7982

83+
<!--
84+
- ~~**The legacy Google-hosted package repositories are going away in January 2024.** These repositories
85+
have been **deprecated as of August 31, 2023**, and **frozen as of September 13, 2023**.
86+
Check out the [deprecation announcement](/blog/2023/08/31/legacy-package-repository-deprecation/)
87+
for more details about this change.~~
88+
-->
89+
- ~~**旧版托管在 Google 的包仓库在 2024 年 1 月停用。**
90+
这些仓库自 **2023 年 8 月 31 日起被弃用**,并且 **自 2023 年 9 月 13 日起被冻结**
91+
有关此更改的更多细节请查阅[弃用公告](/zh-cn/blog/2023/08/31/legacy-package-repository-deprecation/)~~
92+
8093
<!--
8194
- ~~The existing packages in the legacy repositories will be available for the foreseeable future.
8295
However, the Kubernetes project can't provide any guarantees on how long is that going to be.
8396
The deprecated legacy repositories, and their contents, might be removed at any time in the future
84-
and without a further notice period.~~ **The legacy package repositories are going away in
85-
January 2024.**
97+
and without a further notice period. **The legacy package repositories are going away in
98+
January 2024.**~~ **The legacy Google-hosted package repositories went away on March 4, 2024.**
8699
-->
87100
- ~~旧仓库中的现有包将在可预见的未来一段时间内可用。
88101
然而,Kubernetes 项目无法保证这会持续多久。
89-
已弃用的旧仓库及其内容可能会在未来随时被删除,恕不另行通知。~~
90-
**旧版包仓库于 2024 年 1 月停用。**
102+
已弃用的旧仓库及其内容可能会在未来随时被删除,恕不另行通知。
103+
**旧版包仓库于 2024 年 1 月停用。**~~
104+
**旧版托管在 Google 上的包仓库于 2024 年 3 月 4 日停用。**
91105

92106
<!--
93107
- Given that no new releases will be published to the legacy repositories after
94108
the September 13, 2023 cut-off point, you will not be able to upgrade to any patch or minor
95109
release made from that date onwards if you don't migrate to the new Kubernetes package repositories.
96-
That said, we recommend migrating to the new Kubernetes package repositories **as soon as possible**.
110+
~~That said, we recommend migrating to the new Kubernetes package repositories **as soon as possible**.~~
111+
Migrating to the new Kubernetes package repositories is required to consume the official Kubernetes
112+
packages.
97113
-->
98114
- 鉴于在 2023 年 9 月 13 日这个截止时间点之后不会向旧仓库发布任何新版本,
99115
如果你不在该截止时间点迁移至新的 Kubernetes 仓库,
100116
你将无法升级到该日期之后发布的任何补丁或次要版本。
101-
也就是说,我们建议**尽快**迁移到新的 Kubernetes 仓库。
117+
~~也就是说,我们建议**尽快**迁移到新的 Kubernetes 仓库。~~
118+
你需要迁移到新的 Kubernetes 包仓库,才能使用官方 Kubernetes 包。
102119

103120
<!--
104-
- The new Kubernetes package repositories contain packages beginning with those
121+
- **The new Kubernetes package repositories contain packages beginning with those
105122
Kubernetes versions that were still under support when the community took
106123
over the package builds. This means that the new package repositories have Linux packages for all
107-
Kubernetes releases starting with v1.24.0.
124+
Kubernetes releases starting with v1.24.0.**
108125
-->
109-
- 新的 Kubernetes 仓库中包含社区开始接管包构建以来仍在支持的 Kubernetes 版本的包。
126+
- **新的 Kubernetes 仓库中包含社区开始接管包构建以来仍在支持的 Kubernetes 版本的包。
110127
这意味着 v1.24.0 之前的任何内容都只存在于托管在 Google 的仓库中。
111-
这意味着新的包仓库将为从 v1.24.0 开始的所有 Kubernetes 版本提供 Linux 包。
128+
这意味着新的包仓库将为从 v1.24.0 开始的所有 Kubernetes 版本提供 Linux 包。**
112129

113130
<!--
114131
- Kubernetes does not have official Linux packages available for earlier releases of Kubernetes;
@@ -119,10 +136,14 @@ _(updated on January 12, 2024)_
119136
<!--
120137
- There's a dedicated package repository for each Kubernetes minor version.
121138
When upgrading to a different minor release, you must bear in mind that
122-
the package repository details also change.
139+
the package repository details also change. Check out
140+
[Changing The Kubernetes Package Repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/)
141+
guide for information about steps that you need to take upon upgrading the Kubernetes minor version.
123142
-->
124143
- 每个 Kubernetes 次要版本都有一个专用的仓库。
125144
当升级到不同的次要版本时,你必须记住,仓库详细信息也会发生变化。
145+
查阅[变更 Kubernetes 包仓库](/zh-cn/docs/tasks/administer-cluster/kubeadm/change-package-repository/)指南,
146+
了解升级 Kubernetes 次要版本时需要采取的步骤信息。
126147

127148
<!--
128149
## Why are we introducing new package repositories?
@@ -301,20 +322,35 @@ There are three significant differences that you should be aware of:
301322
## 这是否会影响现有的托管在 Google 的仓库? {#does-this-in-any-way-affect-existing-google-hosted-repositories}
302323

303324
<!--
304-
The Google-hosted repository and all packages published to it will continue
325+
_(updated on March 26, 2024)_
326+
-->
327+
**(更新于 2024 年 3 月 26 日)**
328+
329+
<!--
330+
**The legacy Google-hosted repositories went away on March 4, 2024. It's not possible to
331+
install Kubernetes packages from the legacy Google-hosted package repositories any longer.**
332+
Check out [the deprecation announcement](/blog/2023/08/31/legacy-package-repository-deprecation/)
333+
for more details about this change.
334+
-->
335+
**旧版托管在 Google 的仓库于 2024 年 3 月 4 日停用。
336+
你不能再从旧版托管在 Google 的包仓库中安装 Kubernetes 包。**
337+
有关本次变更细节查阅[弃用公告](/zh-cn/blog/2023/08/31/legacy-package-repository-deprecation/)
338+
339+
<!--
340+
~~The Google-hosted repository and all packages published to it will continue
305341
working in the same way as before. There are no changes in how we build and
306342
publish packages to the Google-hosted repository, all newly-introduced changes
307-
are only affecting packages publish to the community-owned repositories.
343+
are only affecting packages publish to the community-owned repositories.~~
308344
-->
309-
托管在 Google 的仓库以及发布到其中的所有包仍然可用,与之前一样。
345+
~~托管在 Google 的仓库以及发布到其中的所有包仍然可用,与之前一样。
310346
我们构建包并将其发布到托管在 Google 仓库的方式没有变化,
311-
所有新引入的更改仅影响发布到社区自有仓库的包。
347+
所有新引入的更改仅影响发布到社区自有仓库的包。~~
312348

313349
<!--
314-
However, as mentioned at the beginning of this blog post, we plan to stop
315-
publishing packages to the Google-hosted repository in the future.
350+
~~However, as mentioned at the beginning of this blog post, we plan to stop
351+
publishing packages to the Google-hosted repository in the future.~~
316352
-->
317-
然而,正如本文开头提到的,我们计划将来停止将包发布到托管在 Google 的仓库。
353+
~~然而,正如本文开头提到的,我们计划将来停止将包发布到托管在 Google 的仓库。~~
318354

319355
<!--
320356
## How to migrate to the Kubernetes community-owned repositories? {#how-to-migrate}
@@ -351,6 +387,13 @@ publishing packages to the Google-hosted repository in the future.
351387
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
352388
```
353389

390+
<!--
391+
_Update: In releases older than Debian 12 and Ubuntu 22.04, the folder `/etc/apt/keyrings` does not exist by default, and it should be created before the curl command._
392+
-->
393+
394+
**更新:在 Debian 12 和 Ubuntu 22.04 之前的版本中,`/etc/apt/keyrings` 文件夹默认不存在,
395+
因此在执行 curl 命令之前应该先创建此文件夹。**
396+
354397
<!--
355398
3. Update the `apt` package index:
356399
-->
@@ -386,18 +429,52 @@ publishing packages to the Google-hosted repository in the future.
386429
EOF
387430
```
388431
432+
<!--
433+
## Where can I get packages for Kubernetes versions prior to v1.24.0?
434+
435+
_(updated on March 26, 2024)_
436+
-->
437+
## 我在哪里可以获取 Kubernetes v1.24.0 之前的软件包?
438+
439+
**(更新于 2024 年 3 月 26 日)**
440+
441+
<!--
442+
For Kubernetes v1.24 and onwards, Linux packages of Kubernetes components are available for
443+
download via the official Kubernetes package repositories. Kubernetes does not publish any
444+
software packages for releases of Kubernetes older than v1.24.0; however, your Linux
445+
distribution may provide its own packages. Alternatively, you can directly download binaries
446+
instead of using packages. As an example, see `Without a package manager` instructions in
447+
["Installing kubeadm"](/docs/setup/production-environment/tools/kubeadm/install-kubeadm)
448+
document.
449+
-->
450+
对于 Kubernetes v1.24 及更高版本,Kubernetes 组件的 Linux 包可以通过官方 Kubernetes 包仓库下载。
451+
Kubernetes 不会再发布 v1.24.0 之前的任何包;然而,你的 Linux 发行版可能会提供自己的包。
452+
或者,你也可以直接下载二进制文件,而不是使用包。
453+
有关细节参见[安装 kubeadm](/zh-cn/docs/setup/production-environment/tools/kubeadm/install-kubeadm)
454+
文档中“没有包管理器”一节的内容。
455+
389456
<!--
390457
## Can I rollback to the Google-hosted repository after migrating to the Kubernetes repositories?
391458
-->
392459
## 迁移到 Kubernetes 仓库后是否可以回滚到托管在 Google 的仓库? {#can-i-rollback-to-the-google-hosted-repository-after-migrating-to-the-kubernetes-repositories}
393460
394461
<!--
395-
In general, yes. Just do the same steps as when migrating, but use parameters
462+
_(updated on March 26, 2024)_
463+
464+
**The legacy Google-hosted repositories went away on March 4, 2024 and therefore it's not possible
465+
to rollback to the legacy Google-hosted repositories any longer.**
466+
-->
467+
**(更新于 2024 年 3 月 26 日)**
468+
469+
**旧版托管在 Google 的仓库于 2024 年 3 月 4 日停用,因此你不能再回滚到旧版托管在 Google 的仓库。**
470+
471+
<!--
472+
~~In general, yes. Just do the same steps as when migrating, but use parameters
396473
for the Google-hosted repository. You can find those parameters in a document
397-
like ["Installing kubeadm"](/docs/setup/production-environment/tools/kubeadm/install-kubeadm).
474+
like ["Installing kubeadm"](/docs/setup/production-environment/tools/kubeadm/install-kubeadm).~~
398475
-->
399-
一般来说,可以。只需执行与迁移时相同的步骤,但使用托管在 Google 的仓库参数。
400-
你可以在[“安装 kubeadm”](/zh-cn/docs/setup/production-environment/tools/kubeadm/install-kubeadm)等文档中找到这些参数。
476+
~~一般来说,可以。只需执行与迁移时相同的步骤,但使用托管在 Google 的仓库参数。
477+
你可以在[“安装 kubeadm”](/zh-cn/docs/setup/production-environment/tools/kubeadm/install-kubeadm)等文档中找到这些参数。~~
401478
402479
<!--
403480
## Why isn’t there a stable list of domains/IPs? Why can’t I restrict package downloads?

0 commit comments

Comments
 (0)