@@ -30,28 +30,45 @@ The following methods exist for installing kubectl on Linux:
30
30
31
31
1 . Download the latest release with the command:
32
32
33
- ``` bash
33
+ {{< tabs name="download_binary_linux" >}}
34
+ {{< tab name="x86-64" codelang="bash" >}}
34
35
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 >}}
36
41
37
42
{{< note >}}
38
43
To download a specific version, replace the ` $(curl -L -s https://dl.k8s.io/release/stable.txt) `
39
44
portion of the command with the specific version.
40
45
41
- For example, to download version {{< param "fullversion" >}} on Linux, type:
46
+ For example, to download version {{< param "fullversion" >}} on Linux x86-64 , type:
42
47
43
48
``` bash
44
49
curl -LO https://dl.k8s.io/release/{{< param " fullversion" > }}/bin/linux/amd64/kubectl
45
50
```
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
+
46
58
{{< /note >}}
47
59
48
60
1 . Validate the binary (optional)
49
61
50
62
Download the kubectl checksum file:
51
63
52
- ``` bash
64
+ {{< tabs name="download_checksum_linux" >}}
65
+ {{< tab name="x86-64" codelang="bash" >}}
53
66
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 >}}
55
72
56
73
Validate the kubectl binary against the checksum file:
57
74
@@ -110,13 +127,13 @@ The following methods exist for installing kubectl on Linux:
110
127
111
128
You can ignore this warning. You are only checking the version of ` kubectl ` that you
112
129
have installed.
113
-
130
+
114
131
{{< /note >}}
115
-
132
+
116
133
Or use this for detailed view of version:
117
134
118
135
``` cmd
119
- kubectl version --client --output=yaml
136
+ kubectl version --client --output=yaml
120
137
```
121
138
122
139
### Install using native package management
@@ -232,17 +249,27 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh.
232
249
233
250
1 . Download the latest release with the command:
234
251
235
- ``` bash
252
+ {{< tabs name="download_convert_binary_linux" >}}
253
+ {{< tab name="x86-64" codelang="bash" >}}
236
254
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 >}}
238
260
239
261
1 . Validate the binary (optional)
240
262
241
263
Download the kubectl-convert checksum file:
242
264
243
- ``` bash
265
+ {{< tabs name="download_convert_checksum_linux" >}}
266
+ {{< tab name="x86-64" codelang="bash" >}}
244
267
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 >}}
246
273
247
274
Validate the kubectl-convert binary against the checksum file:
248
275
0 commit comments