Typo fixes

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
pull/42022/head
Marko Mudrinić 2023-08-04 20:13:00 +02:00
parent f34d608b92
commit b9f0cbcf9a
No known key found for this signature in database
2 changed files with 9 additions and 14 deletions

View File

@ -12,15 +12,14 @@ repositories, the Kubernetes package repositories are structured in a way that
there's a dedicated package repository for each Kubernetes minor version.
For more information about the Kubernetes community-owned package repositories,
see the ["pkgs.k8s.io: Introducing Kubernetes community-owned package repositories"](/2023/08/15/pkgs-k8s-io-introduction/)
blog post.
see ["pkgs.k8s.io: Introducing Kubernetes community-owned package repositories"](/2023/08/15/pkgs-k8s-io-introduction/).
## {{% heading "prerequisites" %}}
This document assumes that you're already using the Kubernetes community-owned
package repositories. If that's not the case, it's strongly recommend to migrate
from the Google-hosted repository to the Kubernetes package repositories
as described in [the blog post](TBD).
to the Kubernetes package repositories as described in
["pkgs.k8s.io: Introducing Kubernetes community-owned package repositories"](/2023/08/15/pkgs-k8s-io-introduction/).
### Verifying if the Kubernetes package repositories are used
@ -40,7 +39,7 @@ pager /etc/apt/sources.list.d/kubernetes.list
If you see a line similar to:
```
deb https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ /
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ /
```
**You're using the Kubernetes package repositories and this guide applies to you.**
@ -108,13 +107,13 @@ minor version. For example, if you're using v{{< skew currentVersionAddMinor -1
you should see this:
```
deb https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ /
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ /
```
2. Change the version in the URL to **the next available minor release**, for example:
```
deb https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/ /
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/ /
```
3. Save the file and exit your text editor. Continue following the relevant upgrade instructions.

View File

@ -164,7 +164,7 @@ The following methods exist for installing kubectl on Linux:
```
{{< note >}}
To upgrade kubectl to another minor release at some point, you'll need to bump the version in `/etc/apt/sources.list.d/kubernetes.list` before running `apt-get update` and `apt-get upgrade`. This procedure is described in more detail in [Changing The Kubernetes Package Repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/).
To upgrade kubectl to another minor release, you'll need to bump the version in `/etc/apt/sources.list.d/kubernetes.list` before running `apt-get update` and `apt-get upgrade`. This procedure is described in more detail in [Changing The Kubernetes Package Repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/).
{{< /note >}}
4. Update `apt` package index, then install kubectl:
@ -184,10 +184,7 @@ In releases older than Debian 12 and Ubuntu 22.04, `/etc/apt/keyrings` does not
1. Add the Kubernetes `yum` repository. If you want to use Kubernetes version
different than {{< param "version" >}}, replace {{< param "version" >}} with
the desired minor version in the command below. The `exclude` parameter in the
repository definition ensures that the packages related to Kubernetes are
not upgraded upon running `yum update` as there's a special procedure that
must be followed for upgrading Kubernetes.
the desired minor version in the command below.
```bash
# This overwrites any existing configuration in /etc/yum.repos.d/kubernetes.repo
@ -198,12 +195,11 @@ baseurl=https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/rpm/repodata/repomd.xml.key
exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
EOF
```
{{< note >}}
To upgrade kubectl to another minor release at some point, you'll need to bump the version in `/etc/yum.repos.d/kubernetes.repo` before running `yum update`. This procedure is described in more detail in [Changing The Kubernetes Package Repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/).
To upgrade kubectl to another minor release, you'll need to bump the version in `/etc/yum.repos.d/kubernetes.repo` before running `yum update`. This procedure is described in more detail in [Changing The Kubernetes Package Repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/).
{{< /note >}}
1. Install kubectl using `yum`: