Skip to content

Commit b77e02e

Browse files
committed
[fr] kubeadm-install: include env variable for ARCH
1 parent c484165 commit b77e02e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ Installez les plugins CNI (requis pour la plupart des réseaux de pods) :
225225

226226
```bash
227227
CNI_VERSION="v0.8.2"
228+
ARCH="amd64"
228229
sudo mkdir -p /opt/cni/bin
229-
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
230+
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
230231
```
231232

232233
Définissez le répertoire pour télécharger les fichiers de commande
@@ -245,7 +246,8 @@ Installez crictl (requis pour Kubeadm / Kubelet Container Runtime Interface (CRI
245246

246247
```bash
247248
CRICTL_VERSION="v1.17.0"
248-
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
249+
ARCH="amd64"
250+
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
249251
```
250252

251253
Installez `kubeadm`,` kubelet`, `kubectl` et ajoutez un service systemd` kubelet`:
@@ -254,8 +256,9 @@ RELEASE_VERSION="v0.6.0"
254256

255257
```bash
256258
RELEASE="$(curl -sSL https://dl.k8s.io/release/stable.txt)"
259+
ARCH="amd64"
257260
cd $DOWNLOAD_DIR
258-
sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
261+
sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet,kubectl}
259262
sudo chmod +x {kubeadm,kubelet,kubectl}
260263

261264
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | sudo tee /etc/systemd/system/kubelet.service

0 commit comments

Comments
 (0)