Skip to content

Commit 199108d

Browse files
author
Tim Bannister
committed
Wrap article
(and some wording tweaks)
1 parent ecaf973 commit 199108d

File tree

1 file changed

+113
-39
lines changed

1 file changed

+113
-39
lines changed

content/en/blog/_posts/2023-08-31-legacy-package-repository-deprecation.md

Lines changed: 113 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,65 @@ slug: legacy-package-repository-deprecation
77

88
**Authors**: Bob Killen (Google), Chris Short (AWS), Jeremy Rickard (Microsoft), Marko Mudrinić (Kubermatic), Tim Bannister (The Scale Factory)
99

10-
On August 15, 2023, the Kubernetes project announced the general availability of the community-owned package repositories for Debian and RPM packages available at `pkgs.k8s.io`. The new package repositories are replacement for the legacy Google-hosted package repositories: `apt.kubernetes.io` and `yum.kubernetes.io`. The [announcement blog post for `pkgs.k8s.io`](/blog/2023/08/15/pkgs-k8s-io-introduction/) highlighted that we will stop publishing packages to the legacy repositories in the future.
11-
12-
Today, we're formally deprecating the legacy package repositories (`apt.kubernetes.io` and `yum.kubernetes.io`), and we're announcing our plans to freeze the contents of the repositories as of **September 13, 2023**.
13-
14-
Please continue reading in order to learn what does this mean for you as an user or distributor, and what steps you may need to take.
10+
On August 15, 2023, the Kubernetes project announced the general availability of
11+
the community-owned package repositories for Debian and RPM packages available
12+
at `pkgs.k8s.io`. The new package repositories are replacement for the legacy
13+
Google-hosted package repositories: `apt.kubernetes.io` and `yum.kubernetes.io`.
14+
The
15+
[announcement blog post for `pkgs.k8s.io`](/blog/2023/08/15/pkgs-k8s-io-introduction/)
16+
highlighted that we will stop publishing packages to the legacy repositories in
17+
the future.
18+
19+
Today, we're formally deprecating the legacy package repositories (`apt.kubernetes.io`
20+
and `yum.kubernetes.io`), and we're announcing our plans to freeze the contents of
21+
the repositories as of **September 13, 2023**.
22+
23+
Please continue reading in order to learn what does this mean for you as an user or
24+
distributor, and what steps you may need to take.
1525

1626
## How does this affect me as a Kubernetes end user?
1727

18-
This change affects users **directly installing upstream versions of Kubernetes**, either manually by following the official [installation](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/) and [upgrade](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) instructions, or by **using a Kubernetes installer** that's using packages provided by the Kubernetes project.
28+
This change affects users **directly installing upstream versions of Kubernetes**,
29+
either manually by following the official
30+
[installation](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/) and
31+
[upgrade](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) instructions, or
32+
by **using a Kubernetes installer** that's using packages provided by the Kubernetes
33+
project.
1934

20-
**This change also affects you if you run Linux on your own PC and have installed `kubectl` using the legacy package repositories**. We'll explain later on how to [check](#check-if-affected) if you're affected.
35+
**This change also affects you if you run Linux on your own PC and have installed `kubectl` using the legacy package repositories**.
36+
We'll explain later on how to [check](#check-if-affected) if you're affected.
2137

22-
If you use **fully managed** Kubernetes, for example through a service from a cloud provider, you would only be affected by this change if you also installed `kubectl` on your Linux PC using packages from the legacy repositories. Cloud providers are generally using their own Kubernetes distributions and therefore they don't use packages provided by the Kubernetes project; more importantly,
23-
if someone else is managing Kubernetes for you, then they would usually take responsibility for that check.
38+
If you use **fully managed** Kubernetes, for example through a service from a cloud
39+
provider, you would only be affected by this change if you also installed `kubectl`
40+
on your Linux PC using packages from the legacy repositories. Cloud providers are
41+
generally using their own Kubernetes distributions and therefore they don't use
42+
packages provided by the Kubernetes project; more importantly, if someone else is
43+
managing Kubernetes for you, then they would usually take responsibility for that check.
2444

25-
If you have a managed [control plane](/docs/concepts/overview/components/#control-plane-components) but you are responsible for **managing the nodes yourself**, and any of those nodes run Linux, you should [check](#check-if-affected) whether you are affected.
45+
If you have a managed [control plane](/docs/concepts/overview/components/#control-plane-components)
46+
but you are responsible for **managing the nodes yourself**, and any of those nodes run Linux,
47+
you should [check](#check-if-affected) whether you are affected.
2648

27-
If you're managing your clusters on your own by following the official installation and upgrade instructions, please follow the instructions in this blog post to migrate to the (new) community-owned package repositories.
49+
If you're managing your clusters on your own by following the official installation
50+
and upgrade instructions, please follow the instructions in this blog post to migrate
51+
to the (new) community-owned package repositories.
2852

2953

30-
If you're using a Kubernetes installer that's using packages provided by the Kubernetes project, please check the installer tool's communication channels for information about what steps you need to take, and eventually if needed, follow up with maintainers to let them know about this change.
54+
If you're using a Kubernetes installer that's using packages provided by the
55+
Kubernetes project, please check the installer tool's communication channels for
56+
information about what steps you need to take, and eventually if needed, follow up
57+
with maintainers to let them know about this change.
3158

3259
## How does this affect me as a Kubernetes distributor?
3360

34-
If you're using the legacy repositories as part of your project (e.g. a Kubernetes installer tool), you should migrate to the community-owned repositories as soon as possible and inform your users about this change and what steps they need to take.
61+
If you're using the legacy repositories as part of your project (e.g. a Kubernetes
62+
installer tool), you should migrate to the community-owned repositories as soon as
63+
possible and inform your users about this change and what steps they need to take.
3564

3665
## Timeline of changes
3766

67+
<!-- note to maintainers - the trailing whitespace is significant -->
68+
3869
- **15th August 2023:**
3970
Kubernetes announces a new, community-managed source for Linux software packages of Kubernetes components
4071
- **31st August 2023:**
@@ -45,53 +76,76 @@ If you're using the legacy repositories as part of your project (e.g. a Kubernet
4576
(`apt.kubernetes.io` and `yum.kubernetes.io`).
4677
The freeze will happen immediately following the patch releases that are scheduled for September, 2023.
4778

48-
The Kubernetes patch releases scheduled for September 2023 (v1.28.2, v1.27.6, v1.26.9, v1.25.14) will have packages published **both** to the community-owned and the legacy repositories.
79+
The Kubernetes patch releases scheduled for September 2023 (v1.28.2, v1.27.6,
80+
v1.26.9, v1.25.14) will have packages published **both** to the community-owned and
81+
the legacy repositories.
4982

50-
We'll freeze the legacy repositories after cutting the patch releases for September which means that we'll completely stop publishing packages to the legacy repositories at that point.
83+
We'll freeze the legacy repositories after cutting the patch releases for September
84+
which means that we'll completely stop publishing packages to the legacy repositories
85+
at that point.
5186

52-
For the v1.28, v1.27, v1.26, and v1.25 patch releases from October 2023 and onwards, we'll only publish packages to the new package repositories (`pkgs.k8s.io`).
87+
For the v1.28, v1.27, v1.26, and v1.25 patch releases from October 2023 and onwards,
88+
we'll only publish packages to the new package repositories (`pkgs.k8s.io`).
5389

5490
### What about future minor releases?
5591

56-
Kubernetes 1.29 and onwards will have packages published **only** to the community-owned repositories (`pkgs.k8s.io`).
92+
Kubernetes 1.29 and onwards will have packages published **only** to the
93+
community-owned repositories (`pkgs.k8s.io`).
5794

5895
## Can I continue to use the legacy package repositories?
5996

60-
The existing packages in the legacy repositories will be available for the foreseeable future. However, the Kubernetes project can't provide _any_ guarantees on how long is that going to be. The deprecated legacy repositories, and their contents, might be removed at any time in the future and without a further notice period.
97+
The existing packages in the legacy repositories will be available for the foreseeable
98+
future. However, the Kubernetes project can't provide _any_ guarantees on how long
99+
is that going to be. The deprecated legacy repositories, and their contents, might
100+
be removed at any time in the future and without a further notice period.
61101

62-
The Kubernetes project **strongly recommends** migrating to the new community-owned repositories **as soon as possible**.
102+
The Kubernetes project **strongly recommends** migrating to the new community-owned
103+
repositories **as soon as possible**.
63104

64-
Given that no new releases will be published to the legacy repositories **after the September 13, 2023**, **you will not be able to upgrade to any patch or minor release made from that date onwards.**
105+
Given that no new releases will be published to the legacy repositories **after the September 13, 2023**
106+
cut-off point, **you will not be able to upgrade to any patch or minor release made from that date onwards.**
65107

66-
Whilst the project makes every effort to release secure software, there may one day be a high-severity vulnerability in Kubernetes, and consequently an important release to upgrade to.
67-
The advice we're announcing will help you be as prepared
68-
for any future security update, whether trivial or urgent.
108+
Whilst the project makes every effort to release secure software, there may one
109+
day be a high-severity vulnerability in Kubernetes, and consequently an important
110+
release to upgrade to. The advice we're announcing will help you be as prepared for
111+
any future security update, whether trivial or urgent.
69112

70113
## How can I check if I'm using the legacy repositories? {#check-if-affected}
71114

72-
The steps to check if you're using the legacy repositories depend on whether you're using Debian-based distributions (Debian, Ubuntu, and more) or RPM-based distributions (CentOS, RHEL, Rocky Linux, and more) in your cluster.
115+
The steps to check if you're using the legacy repositories depend on whether you're
116+
using Debian-based distributions (Debian, Ubuntu, and more) or RPM-based distributions
117+
(CentOS, RHEL, Rocky Linux, and more) in your cluster.
73118

74119
Run these instructions on one of your nodes in the cluster.
75120

76121
### Debian-based Linux distributions
77122

78-
The repository definitions (sources) are located in `/etc/apt/sources.list` and `/etc/apt/sources.list.d/` on Debian-based distributions. Inspect these two locations and try to locate a package repository definition that looks like:
123+
The repository definitions (sources) are located in `/etc/apt/sources.list` and `/etc/apt/sources.list.d/`
124+
on Debian-based distributions. Inspect these two locations and try to locate a
125+
package repository definition that looks like:
79126

80127
```
81128
deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main
82129
```
83130

84131
**If you find a repository definition that looks like this, you're using the legacy repository and you need to migrate.**
85132

86-
If the repository definition uses `pkgs.k8s.io`, you're already using the community-hosted repositories and you don't need to take any action.
133+
If the repository definition uses `pkgs.k8s.io`, you're already using the
134+
community-hosted repositories and you don't need to take any action.
87135

88-
On most systems, this repository definition should be located in `/etc/apt/sources.list.d/kubernetes.list` (as recommended by the Kubernetes documentation), but on some systems it might be in a different location.
136+
On most systems, this repository definition should be located in
137+
`/etc/apt/sources.list.d/kubernetes.list` (as recommended by the Kubernetes
138+
documentation), but on some systems it might be in a different location.
89139

90-
If you can't find a repository definition related to Kubernetes, it's likely that you don't use package managers to install Kubernetes and you don't need to take any action.
140+
If you can't find a repository definition related to Kubernetes, it's likely that you
141+
don't use package managers to install Kubernetes and you don't need to take any action.
91142

92143
### RPM-based Linux distributions
93144

94-
The repository definitions are located in `/etc/yum.repos.d` if you're using the `yum` package manager, or `/etc/dnf/dnf.conf` and `/etc/dnf/repos.d/` if you're using `dnf` package manager. Inspect those locations and try to locate a package repository definition that looks like this:
145+
The repository definitions are located in `/etc/yum.repos.d` if you're using the
146+
`yum` package manager, or `/etc/dnf/dnf.conf` and `/etc/dnf/repos.d/` if you're using
147+
`dnf` package manager. Inspect those locations and try to locate a package repository
148+
definition that looks like this:
95149

96150
```
97151
[kubernetes]
@@ -105,30 +159,50 @@ exclude=kubelet kubeadm kubectl
105159

106160
**If you find a repository definition that looks like this, you're using the legacy repository and you need to migrate.**
107161

108-
If the repository definition uses `pkgs.k8s.io`, you're already using the community-hosted repositories and you don't need to take any action.
162+
If the repository definition uses `pkgs.k8s.io`, you're already using the
163+
community-hosted repositories and you don't need to take any action.
109164

110-
On most systems, that repository definition should be located in `/etc/yum.repos.d/kubernetes.repo` (as recommended by the Kubernetes documentation), but on some systems it might be in a different location.
165+
On most systems, that repository definition should be located in `/etc/yum.repos.d/kubernetes.repo`
166+
(as recommended by the Kubernetes documentation), but on some systems it might be
167+
in a different location.
111168

112-
If you can't find a repository definition related to Kubernetes, it's likely that you don't use package managers to install Kubernetes and you don't need to take any action.
169+
If you can't find a repository definition related to Kubernetes, it's likely that you
170+
don't use package managers to install Kubernetes and you don't need to take any action.
113171

114172
## How can I migrate to the new community-operated repositories?
115173

116-
For more information on how to migrate to the new community managed packages, please refer to the [announcement blog post for `pkgs.k8s.io`](/blog/2023/08/15/pkgs-k8s-io-introduction/).
174+
For more information on how to migrate to the new community
175+
managed packages, please refer to the
176+
[announcement blog post for `pkgs.k8s.io`](/blog/2023/08/15/pkgs-k8s-io-introduction/).
117177

118178
## Why is the Kubernetes project making this change?
119179

120-
Kubernetes has been publishing packages solely to the Google-hosted repository since Kubernetes v1.5, or the past **seven** years! Following in the footsteps of migrating to our community-managed registry, registry.k8s.io, we are now migrating the Kubernetes package repositories to our own community-managed infrastructure. We’re thankful to Google for their continuous hosting and support all these years, but this transition marks another big milestone for the project’s goal of migrating to complete community-owned infrastructure.
180+
Kubernetes has been publishing packages solely to the Google-hosted repository
181+
since Kubernetes v1.5, or the past **seven** years! Following in the footsteps of
182+
migrating to our community-managed registry, `registry.k8s.io`, we are now migrating the
183+
Kubernetes package repositories to our own community-managed infrastructure. We’re
184+
thankful to Google for their continuous hosting and support all these years, but
185+
this transition marks another big milestone for the project’s goal of migrating
186+
to complete community-owned infrastructure.
121187

122188
## Is there a Kubernetes tool to help me migrate?
123189

124-
We don't have any announcement to make about tooling there. As a Kubernetes user, you have to manually modify your configuration to use the new repositories. Automating the migration from the legacy to the community-owned repositories is technically challenging and we want to avoid any potential risks associated with this.
190+
We don't have any announcement to make about tooling there. As a Kubernetes user, you
191+
have to manually modify your configuration to use the new repositories. Automating
192+
the migration from the legacy to the community-owned repositories is technically
193+
challenging and we want to avoid any potential risks associated with this.
125194

126195
## Acknowledgments
127196

128-
First of all, we want to acknowledge the contributions from Alphabet. Staff at Google have provided their time; Google as a business has provided both the infrastructure to serve packages, and the security context for giving those packages trustworthy digital signatures.
197+
First of all, we want to acknowledge the contributions from Alphabet. Staff at Google
198+
have provided their time; Google as a business has provided both the infrastructure
199+
to serve packages, and the security context for giving those packages trustworthy
200+
digital signatures.
129201
These have been important to the adoption and growth of Kubernetes.
130202

131-
Releasing software might not be glamorous but it's important. Many people within the Kubernetes contributor community have contributed to the new way that we, as a project, have for building and publishing packages.
203+
Releasing software might not be glamorous but it's important. Many people within
204+
the Kubernetes contributor community have contributed to the new way that we, as a
205+
project, have for building and publishing packages.
132206

133-
And finally, we want to once again acknowledge the help from SUSE. OpenBuildService, from SUSE, is the technology
134-
that the powers the new community-managed package repositories.
207+
And finally, we want to once again acknowledge the help from SUSE. OpenBuildService,
208+
from SUSE, is the technology that the powers the new community-managed package repositories.

0 commit comments

Comments
 (0)