Skip to content

Commit 8d529e1

Browse files
authored
Merge pull request #36444 from saschagrunert/cni-crictl-versions-kubeadm
Update CNI plugins and cri-tools for kubeadm docs
2 parents 4ef0f85 + b63c85f commit 8d529e1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,28 +212,29 @@ sudo systemctl enable --now kubelet
212212
Install CNI plugins (required for most pod network):
213213

214214
```bash
215-
CNI_VERSION="v0.8.2"
215+
CNI_PLUGINS_VERSION="v1.1.1"
216216
ARCH="amd64"
217-
sudo mkdir -p /opt/cni/bin
218-
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz" | sudo tar -C /opt/cni/bin -xz
217+
DEST="/opt/cni/bin"
218+
sudo mkdir -p "$DEST"
219+
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-${ARCH}-${CNI_PLUGINS_VERSION}.tgz" | sudo tar -C "$DEST" -xz
219220
```
220221

221222
Define the directory to download command files
222223

223224
{{< note >}}
224225
The `DOWNLOAD_DIR` variable must be set to a writable directory.
225-
If you are running Flatcar Container Linux, set `DOWNLOAD_DIR=/opt/bin`.
226+
If you are running Flatcar Container Linux, set `DOWNLOAD_DIR="/opt/bin"`.
226227
{{< /note >}}
227228

228229
```bash
229-
DOWNLOAD_DIR=/usr/local/bin
230-
sudo mkdir -p $DOWNLOAD_DIR
230+
DOWNLOAD_DIR="/usr/local/bin"
231+
sudo mkdir -p "$DOWNLOAD_DIR"
231232
```
232233

233234
Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI))
234235

235236
```bash
236-
CRICTL_VERSION="v1.22.0"
237+
CRICTL_VERSION="v1.25.0"
237238
ARCH="amd64"
238239
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
239240
```

0 commit comments

Comments
 (0)