Skip to content

Commit 98dae01

Browse files
committed
Improvements in "Installing kubeadm" document
1 parent 67876e7 commit 98dae01

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

content/en/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ For more information on version skews, see:
161161

162162
{{< note >}}
163163
There's a dedicated package repository for each Kubernetes minor version. If you want to install
164-
a minor version other than {{< skew currentVersion >}}, please see the installation guide for
164+
a minor version other than v{{< skew currentVersion >}}, please see the installation guide for
165165
your desired minor version.
166166
{{< /note >}}
167167

168168
{{< tabs name="k8s_install" >}}
169169
{{% tab name="Debian-based distributions" %}}
170170

171-
These instructions are for Kubernetes {{< skew currentVersion >}}.
171+
These instructions are for Kubernetes v{{< skew currentVersion >}}.
172172

173173
1. Update the `apt` package index and install packages needed to use the Kubernetes `apt` repository:
174174

@@ -182,13 +182,13 @@ These instructions are for Kubernetes {{< skew currentVersion >}}.
182182
The same signing key is used for all repositories so you can disregard the version in the URL:
183183

184184
```shell
185-
# If the folder `/etc/apt/keyrings` does not exist, it should be created before the curl command, read the note below.
185+
# If the directory `/etc/apt/keyrings` does not exist, it should be created before the curl command, read the note below.
186186
# sudo mkdir -p -m 755 /etc/apt/keyrings
187187
curl -fsSL https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
188188
```
189189

190190
{{< note >}}
191-
In releases older than Debian 12 and Ubuntu 22.04, folder `/etc/apt/keyrings` does not exist by default, and it should be created before the curl command.
191+
In releases older than Debian 12 and Ubuntu 22.04, directory `/etc/apt/keyrings` does not exist by default, and it should be created before the curl command.
192192
{{< /note >}}
193193

194194
3. Add the appropriate Kubernetes `apt` repository. Please note that this repository have packages
@@ -210,6 +210,12 @@ In releases older than Debian 12 and Ubuntu 22.04, folder `/etc/apt/keyrings` do
210210
sudo apt-mark hold kubelet kubeadm kubectl
211211
```
212212

213+
5. (Optional) Enable the kubelet service before running kubeadm:
214+
215+
```shell
216+
sudo systemctl enable --now kubelet
217+
```
218+
213219
{{% /tab %}}
214220
{{% tab name="Red Hat-based distributions" %}}
215221

@@ -255,10 +261,15 @@ settings that are not supported by kubeadm.
255261
EOF
256262
```
257263
258-
3. Install kubelet, kubeadm and kubectl, and enable kubelet to ensure it's automatically started on startup:
264+
3. Install kubelet, kubeadm and kubectl:
259265
260266
```shell
261267
sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
268+
```
269+
270+
4. (Optional) Enable the kubelet service before running kubeadm:
271+
272+
```shell
262273
sudo systemctl enable --now kubelet
263274
```
264275
@@ -294,7 +305,7 @@ ARCH="amd64"
294305
curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-${ARCH}.tar.gz" | sudo tar -C $DOWNLOAD_DIR -xz
295306
```
296307
297-
Install `kubeadm`, `kubelet`, `kubectl` and add a `kubelet` systemd service:
308+
Install `kubeadm`, `kubelet` and add a `kubelet` systemd service:
298309
299310
```bash
300311
RELEASE="$(curl -sSL https://dl.k8s.io/release/stable.txt)"
@@ -316,10 +327,10 @@ that do not include `glibc` by default.
316327
317328
Install `kubectl` by following the instructions on [Install Tools page](/docs/tasks/tools/#kubectl).
318329
319-
Enable and start `kubelet`:
330+
Optionally, enable the kubelet service before running kubeadm:
320331
321332
```bash
322-
systemctl enable --now kubelet
333+
sudo systemctl enable --now kubelet
323334
```
324335
325336
{{< note >}}

0 commit comments

Comments
 (0)