@@ -14,12 +14,12 @@ there's a dedicated package repository for each Kubernetes minor version.
14
14
## {{% heading "prerequisites" %}}
15
15
16
16
This document assumes that you're already using the Kubernetes community-owned
17
- package repositories. If that's not the case, it's strongly recommend to migrate
17
+ package repositories. If that's not the case, it's strongly recommended to migrate
18
18
to the Kubernetes package repositories.
19
19
20
20
### Verifying if the Kubernetes package repositories are used
21
21
22
- If you're unsure if you're using the Kubernetes package repositories or the
22
+ If you're unsure whether you're using the Kubernetes package repositories or the
23
23
Google-hosted repository, take the following steps to verify:
24
24
25
25
{{< tabs name="k8s_install_versions" >}}
@@ -39,7 +39,7 @@ deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io
39
39
```
40
40
41
41
** You're using the Kubernetes package repositories and this guide applies to you.**
42
- Otherwise, it's strongly recommend to migrate to the Kubernetes package repositories.
42
+ Otherwise, it's strongly recommended to migrate to the Kubernetes package repositories.
43
43
44
44
{{% /tab %}}
45
45
{{% tab name="CentOS, RHEL or Fedora" %}}
@@ -51,7 +51,7 @@ Print the contents of the file that defines the Kubernetes `yum` repository:
51
51
cat /etc/yum.repos.d/kubernetes.repo
52
52
```
53
53
54
- If you see ` baseurl ` similar to the ` baseurl ` in the output below:
54
+ If you see a ` baseurl ` similar to the ` baseurl ` in the output below:
55
55
56
56
```
57
57
[kubernetes]
@@ -64,7 +64,7 @@ exclude=kubelet kubeadm kubectl
64
64
```
65
65
66
66
** You're using the Kubernetes package repositories and this guide applies to you.**
67
- Otherwise, it's strongly recommend to migrate to the Kubernetes package repositories.
67
+ Otherwise, it's strongly recommended to migrate to the Kubernetes package repositories.
68
68
69
69
{{% /tab %}}
70
70
{{< /tabs >}}
@@ -76,7 +76,6 @@ it can also be one of:
76
76
- ` pkgs.k8s.io `
77
77
- ` pkgs.kubernetes.io `
78
78
- ` packages.kubernetes.io `
79
- - ` packages.kubernetes.io `
80
79
{{</ note >}}
81
80
82
81
<!-- steps -->
@@ -92,62 +91,62 @@ version.
92
91
93
92
1 . Open the file that defines the Kubernetes ` apt ` repository using a text editor of your choice:
94
93
95
- ``` shell
96
- nano /etc/apt/sources.list.d/kubernetes.list
97
- ```
94
+ ``` shell
95
+ nano /etc/apt/sources.list.d/kubernetes.list
96
+ ```
98
97
99
- You should see a single line with the URL that contains your current Kubernetes
100
- minor version. For example, if you're using v{{< skew currentVersionAddMinor -1 "." >}},
101
- you should see this:
98
+ You should see a single line with the URL that contains your current Kubernetes
99
+ minor version. For example, if you're using v{{< skew currentVersionAddMinor -1 "." >}},
100
+ you should see this:
102
101
103
- ```
104
- deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ /
105
- ```
102
+ ```
103
+ deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ /
104
+ ```
106
105
107
- 2 . Change the version in the URL to ** the next available minor release** , for example:
106
+ 1 . Change the version in the URL to ** the next available minor release** , for example:
108
107
109
- ```
110
- deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/ /
111
- ```
108
+ ```
109
+ deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/ /
110
+ ```
112
111
113
- 3 . Save the file and exit your text editor. Continue following the relevant upgrade instructions.
112
+ 1 . Save the file and exit your text editor. Continue following the relevant upgrade instructions.
114
113
115
114
{{% /tab %}}
116
115
{{% tab name="CentOS, RHEL or Fedora" %}}
117
116
118
117
1 . Open the file that defines the Kubernetes ` yum ` repository using a text editor of your choice:
119
118
120
- ``` shell
121
- nano /etc/yum.repos.d/kubernetes.repo
122
- ```
123
-
124
- You should see a file with two URLs that contain your current Kubernetes
125
- minor version. For example, if you're using v{{< skew currentVersionAddMinor -1 "." >}},
126
- you should see this:
127
-
128
- ```
129
- [kubernetes]
130
- name=Kubernetes
131
- baseurl=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/
132
- enabled=1
133
- gpgcheck=1
134
- gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/repodata/repomd.xml.key
135
- exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
136
- ```
137
-
138
- 2 . Change the version in these URLs to ** the next available minor release** , for example:
139
-
140
- ```
141
- [kubernetes]
142
- name=Kubernetes
143
- baseurl=https://pkgs.k8s.io/core:/stable:/v{{< param "version" >}}/rpm/
144
- enabled=1
145
- gpgcheck=1
146
- gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< param "version" >}}/rpm/repodata/repomd.xml.key
147
- exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
148
- ```
149
-
150
- 3 . Save the file and exit your text editor. Continue following the relevant upgrade instructions.
119
+ ``` shell
120
+ nano /etc/yum.repos.d/kubernetes.repo
121
+ ```
122
+
123
+ You should see a file with two URLs that contain your current Kubernetes
124
+ minor version. For example, if you're using v{{< skew currentVersionAddMinor -1 "." >}},
125
+ you should see this:
126
+
127
+ ```
128
+ [kubernetes]
129
+ name=Kubernetes
130
+ baseurl=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/
131
+ enabled=1
132
+ gpgcheck=1
133
+ gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/repodata/repomd.xml.key
134
+ exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
135
+ ```
136
+
137
+ 1 . Change the version in these URLs to ** the next available minor release** , for example:
138
+
139
+ ```
140
+ [kubernetes]
141
+ name=Kubernetes
142
+ baseurl=https://pkgs.k8s.io/core:/stable:/v{{< param "version" >}}/rpm/
143
+ enabled=1
144
+ gpgcheck=1
145
+ gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< param "version" >}}/rpm/repodata/repomd.xml.key
146
+ exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
147
+ ```
148
+
149
+ 1 . Save the file and exit your text editor. Continue following the relevant upgrade instructions.
151
150
152
151
{{% /tab %}}
153
152
{{< /tabs >}}
0 commit comments