You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/tasks/tools/install-kubectl-linux.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,9 +147,9 @@ The following methods exist for installing kubectl on Linux:
147
147
echo'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/ /'| sudo tee /etc/apt/sources.list.d/kubernetes.list
148
148
```
149
149
150
-
{{< note >}}
151
-
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/).
152
-
{{< /note >}}
150
+
{{< note >}}
151
+
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/).
152
+
{{< /note >}}
153
153
154
154
4. Update `apt` package index, then install kubectl:
155
155
@@ -170,27 +170,27 @@ In releases older than Debian 12 and Ubuntu 22.04, `/etc/apt/keyrings` does not
170
170
different than {{< param "version" >}}, replace {{< param "version" >}} with
171
171
the desired minor version in the command below.
172
172
173
-
```bash
174
-
# This overwrites any existing configuration in /etc/yum.repos.d/kubernetes.repo
175
-
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
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/).
0 commit comments