Skip to content

Commit 9c5d9e5

Browse files
authored
Merge pull request #29051 from sfxworks/patch-1
kubeadm-install: include env variable for ARCH
2 parents 528a65c + 79684f8 commit 9c5d9e5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ Install CNI plugins (required for most pod network):
240240

241241
```bash
242242
CNI_VERSION="v0.8.2"
243+
ARCH="amd64"
243244
sudo mkdir -p /opt/cni/bin
244-
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-amd64-${CNI_VERSION}.tgz" | sudo tar -C /opt/cni/bin -xz
245+
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
245246
```
246247

247248
Define the directory to download command files
@@ -260,15 +261,17 @@ Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI)
260261

261262
```bash
262263
CRICTL_VERSION="v1.17.0"
263-
curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz" | sudo tar -C $DOWNLOAD_DIR -xz
264+
ARCH="amd64"
265+
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
264266
```
265267

266268
Install `kubeadm`, `kubelet`, `kubectl` and add a `kubelet` systemd service:
267269

268270
```bash
269271
RELEASE="$(curl -sSL https://dl.k8s.io/release/stable.txt)"
272+
ARCH="amd64"
270273
cd $DOWNLOAD_DIR
271-
sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
274+
sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet,kubectl}
272275
sudo chmod +x {kubeadm,kubelet,kubectl}
273276

274277
RELEASE_VERSION="v0.4.0"
@@ -314,4 +317,3 @@ If you are running into difficulties with kubeadm, please consult our [troublesh
314317
## {{% heading "whatsnext" %}}
315318

316319
* [Using kubeadm to Create a Cluster](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/)
317-

0 commit comments

Comments
 (0)