Skip to content

Commit ec519e2

Browse files
committed
Add curl download options for linux on arm64
1 parent 648cda5 commit ec519e2

File tree

1 file changed

+39
-12
lines changed

1 file changed

+39
-12
lines changed

content/en/docs/tasks/tools/install-kubectl-linux.md

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,45 @@ The following methods exist for installing kubectl on Linux:
3030

3131
1. Download the latest release with the command:
3232

33-
```bash
33+
{{< tabs name="download_binary_linux" >}}
34+
{{< tab name="x86-64" codelang="bash" >}}
3435
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
35-
```
36+
{{< /tab >}}
37+
{{< tab name="ARM64" codelang="bash" >}}
38+
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
39+
{{< /tab >}}
40+
{{< /tabs >}}
3641

3742
{{< note >}}
3843
To download a specific version, replace the `$(curl -L -s https://dl.k8s.io/release/stable.txt)`
3944
portion of the command with the specific version.
4045

41-
For example, to download version {{< param "fullversion" >}} on Linux, type:
46+
For example, to download version {{< param "fullversion" >}} on Linux x86-64, type:
4247

4348
```bash
4449
curl -LO https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/linux/amd64/kubectl
4550
```
51+
52+
And for Linux ARM64, type:
53+
54+
```bash
55+
curl -LO https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/linux/arm64/kubectl
56+
```
57+
4658
{{< /note >}}
4759

4860
1. Validate the binary (optional)
4961

5062
Download the kubectl checksum file:
5163

52-
```bash
64+
{{< tabs name="download_checksum_linux" >}}
65+
{{< tab name="x86-64" codelang="bash" >}}
5366
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
54-
```
67+
{{< /tab >}}
68+
{{< tab name="ARM64" codelang="bash" >}}
69+
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl.sha256"
70+
{{< /tab >}}
71+
{{< /tabs >}}
5572

5673
Validate the kubectl binary against the checksum file:
5774

@@ -110,13 +127,13 @@ The following methods exist for installing kubectl on Linux:
110127

111128
You can ignore this warning. You are only checking the version of `kubectl` that you
112129
have installed.
113-
130+
114131
{{< /note >}}
115-
132+
116133
Or use this for detailed view of version:
117134

118135
```cmd
119-
kubectl version --client --output=yaml
136+
kubectl version --client --output=yaml
120137
```
121138

122139
### Install using native package management
@@ -232,17 +249,27 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh.
232249

233250
1. Download the latest release with the command:
234251

235-
```bash
252+
{{< tabs name="download_convert_binary_linux" >}}
253+
{{< tab name="x86-64" codelang="bash" >}}
236254
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert"
237-
```
255+
{{< /tab >}}
256+
{{< tab name="ARM64" codelang="bash" >}}
257+
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl-convert"
258+
{{< /tab >}}
259+
{{< /tabs >}}
238260

239261
1. Validate the binary (optional)
240262

241263
Download the kubectl-convert checksum file:
242264

243-
```bash
265+
{{< tabs name="download_convert_checksum_linux" >}}
266+
{{< tab name="x86-64" codelang="bash" >}}
244267
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert.sha256"
245-
```
268+
{{< /tab >}}
269+
{{< tab name="ARM64" codelang="bash" >}}
270+
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl-convert.sha256"
271+
{{< /tab >}}
272+
{{< /tabs >}}
246273

247274
Validate the kubectl-convert binary against the checksum file:
248275

0 commit comments

Comments
 (0)