@@ -12,17 +12,18 @@ con los siguientes versiones de plano de control v{{< skew currentVersionAddMino
12
12
v{{< skew currentVersionAddMinor 0 >}}, and v{{< skew currentVersionAddMinor 1 >}}.
13
13
Utilizar la ultima version compatible de kubectl evita posibles errores.
14
14
15
- ## Install kubectl on Linux
15
+ ## Instalar kubectl en Linux
16
16
17
- The following methods exist for installing kubectl on Linux:
17
+ Existen los siguientes métodos para instalar kubectl en Linux:
18
18
19
- - [ Install kubectl binary with curl on Linux] ( #install-kubectl-binary-with-curl-on-linux )
20
- - [ Install using native package management] ( #install-using-native-package-management )
21
- - [ Install using other package management] ( #install-using-other-package-management )
19
+ # TODO -> tengo dudas si los links dentro del documento van a funcionar si los nombres no son exactamente iguales!
20
+ - [ Instalación del binario para Linux de kubectl con Curl] ( #install-kubectl-binary-with-curl-on-linux )
21
+ - [ Instalación mediante el administrador de paquetes nativo] ( #install-using-native-package-management )
22
+ - [ Instalación usando otro administrador de paquetes] ( #install-using-other-package-management )
22
23
23
- ### Install kubectl binary with curl on Linux
24
+ ### Instalación del binario para Linux de kubectl con Curl
24
25
25
- 1 . Download the latest release with the command :
26
+ 1 . Descargar la ultima versión con el siguiente comando :
26
27
27
28
{{< tabs name="download_binary_linux" >}}
28
29
{{< tab name="x86-64" codelang="bash" >}}
@@ -34,26 +35,26 @@ The following methods exist for installing kubectl on Linux:
34
35
{{< /tabs >}}
35
36
36
37
{{< note >}}
37
- To download a specific version, replace the ` $(curl -L -s https://dl.k8s.io/release/stable.txt) `
38
- portion of the command with the specific version.
38
+ Para Descargar una versión específica reemplazar la siguiente parte del comando con la
39
+ versión que desea instalar ` $(curl -L -s https://dl.k8s.io/release/stable.txt) `
39
40
40
- For example, to download version {{< skew currentPatchVersion >}} on Linux x86-64, type :
41
+ Por ejemplo, para descargar la versión {{< skew currentPatchVersion >}} en linux x86-64:
41
42
42
43
``` bash
43
44
curl -LO https://dl.k8s.io/release/v{{< skew currentPatchVersion > }}/bin/linux/amd64/kubectl
44
45
```
45
46
46
- And for Linux ARM64, type :
47
+ Y para Linux ARM64:
47
48
48
49
``` bash
49
50
curl -LO https://dl.k8s.io/release/v{{< skew currentPatchVersion > }}/bin/linux/arm64/kubectl
50
51
```
51
52
52
53
{{< /note >}}
53
54
54
- 1 . Validate the binary (optional )
55
+ 1 . Validación del binario (paso opcional )
55
56
56
- Download the kubectl checksum file :
57
+ Descargar el archivo checksum:
57
58
58
59
{{< tabs name="download_checksum_linux" >}}
59
60
{{< tab name="x86-64" codelang="bash" >}}
@@ -64,61 +65,61 @@ The following methods exist for installing kubectl on Linux:
64
65
{{< /tab >}}
65
66
{{< /tabs >}}
66
67
67
- Validate the kubectl binary against the checksum file :
68
+ Validar el binario de kubectl contra el archivo checksum:
68
69
69
70
``` bash
70
71
echo " $( cat kubectl.sha256) kubectl" | sha256sum --check
71
72
```
72
73
73
- If valid, the output is :
74
+ Si es válido va a obtener la siguiente respuesta :
74
75
75
76
``` console
76
77
kubectl: OK
77
78
```
78
79
79
- If the check fails , ` sha256 ` exits with nonzero status and prints output similar to :
80
+ En caso de falla , ` sha256 ` terminará con un estado diferente a cero con una salida similar a esta :
80
81
81
82
``` console
82
83
kubectl: FAILED
83
84
sha256sum: WARNING: 1 computed checksum did NOT match
84
85
```
85
86
86
87
{{< note >}}
87
- Download the same version of the binary and checksum.
88
+ Descargue la misma versión del binario y el checksum.
88
89
{{< /note >}}
89
90
90
- 1 . Install kubectl
91
+ 1 . Instalar kubectl
91
92
92
93
``` bash
93
94
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
94
95
```
95
96
96
97
{{< note >}}
97
- If you do not have root access on the target system, you can still install
98
- kubectl to the ` ~/.local/bin ` directory :
98
+ Si no tiene acceso root en el sistema donde se busca instalar, se puede colocar
99
+ el binario kubectl en el directorio ` ~/.local/bin ` :
99
100
100
101
``` bash
101
102
chmod +x kubectl
102
103
mkdir -p ~ /.local/bin
103
104
mv ./kubectl ~ /.local/bin/kubectl
104
- # and then append (or prepend) ~/.local/bin to $PATH
105
+ # Y Despues agregue el directorio ~/.local/bin a su $PATH
105
106
```
106
107
107
108
{{< /note >}}
108
109
109
- 1 . Test to ensure the version you installed is up-to-date :
110
+ 1 . Test para asegurar que la versión instalada esta actualizada :
110
111
111
112
``` bash
112
113
kubectl version --client
113
114
```
114
115
115
- Or use this for detailed view of version :
116
+ O use lo siguiente para una vista detallada de la versión :
116
117
117
118
``` cmd
118
119
kubectl version --client --output=yaml
119
120
```
120
121
121
- ### Install using native package management
122
+ ### Instalación mediante el administrador de paquetes nativo
122
123
123
124
{{< tabs name="kubectl_install" >}}
124
125
{{% tab name="Debian-based distributions" %}}
@@ -225,13 +226,13 @@ before running `zypper update`. This procedure is described in more detail in
225
226
{{% /tab %}}
226
227
{{< /tabs > }}
227
228
228
- # ## Install using other package management
229
+ # ## Instalación usando otro administrador de paquetes
229
230
230
231
{{< tabs name=" other_kubectl_install" > }}
231
232
{{% tab name=" Snap" %}}
232
- If you are on Ubuntu or another Linux distribution that supports the
233
- [snap](https://snapcraft.io/docs/core/install) package manager , kubectl
234
- is available as a [snap](https://snapcraft.io/) application .
233
+ Si utiliza Ubuntu o alguna distribución que soporte el administrador de
234
+ paquetes [snap](https://snapcraft.io/docs/core/install), kubectl
235
+ esta disponible como una aplicación de [snap](https://snapcraft.io/).
235
236
236
237
` ` ` shell
237
238
snap install kubectl --classic
@@ -241,8 +242,8 @@ kubectl version --client
241
242
{{% /tab %}}
242
243
243
244
{{% tab name=" Homebrew" %}}
244
- If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux)
245
- package manager, kubectl is available for [installation ](https://docs.brew.sh/Homebrew-on-Linux#install).
245
+ Si utiliza [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) en Linux,
246
+ kubectl esta disponible para su [instalación ](https://docs.brew.sh/Homebrew-on-Linux#install).
246
247
247
248
` ` ` shell
248
249
brew install kubectl
@@ -253,30 +254,30 @@ kubectl version --client
253
254
254
255
{{< /tabs > }}
255
256
256
- # # Verify kubectl configuration
257
+ # # Verificar la configuración de kubectl
257
258
258
259
{{< include " included/verify-kubectl.md" > }}
259
260
260
- # # Optional kubectl configurations and plugins
261
+ # # Configuraciones opcionales y plugins de kubectl
261
262
262
- # ## Enable shell autocompletion
263
+ # ## Habilitar el autocompletado en la shell
263
264
264
- kubectl provides autocompletion support for Bash, Zsh, Fish, and PowerShell ,
265
- which can save you a lot of typing .
265
+ Kubectl tiene soporte para autocompletar en Bash, Zsh, Fish y Powershell ,
266
+ lo que puede agilizar el tipeo .
266
267
267
- Below are the procedures to set up autocompletion for Bash, Fish, and Zsh.
268
+ A continuación estan los procedimientos para configurarlo en Bash, Fisch y Zsh.
268
269
269
270
{{< tabs name=" kubectl_autocompletion" > }}
270
271
{{< tab name=" Bash" include=" included/optional-kubectl-configs-bash-linux.md" /> }}
271
272
{{< tab name=" Fish" include=" included/optional-kubectl-configs-fish.md" /> }}
272
273
{{< tab name=" Zsh" include=" included/optional-kubectl-configs-zsh.md" /> }}
273
274
{{< /tabs > }}
274
275
275
- # ## Install `kubectl convert` plugin
276
+ # ## Instalar el plugin `kubectl convert`
276
277
277
278
{{< include " included/kubectl-convert-overview.md" > }}
278
279
279
- 1. Download the latest release with the command :
280
+ 1. Descargue la última version con el siguiente comando :
280
281
281
282
{{< tabs name=" download_convert_binary_linux" > }}
282
283
{{< tab name=" x86-64" codelang=" bash" > }}
@@ -287,9 +288,9 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh.
287
288
{{< /tab > }}
288
289
{{< /tabs > }}
289
290
290
- 1. Validate the binary (optional )
291
+ 1. Valide el binario (opcional )
291
292
292
- Download the kubectl-convert checksum file :
293
+ Descargue el checksum de kubectl-convert:
293
294
294
295
{{< tabs name=" download_convert_checksum_linux" > }}
295
296
{{< tab name=" x86-64" codelang=" bash" > }}
@@ -300,42 +301,42 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh.
300
301
{{< /tab > }}
301
302
{{< /tabs > }}
302
303
303
- Validate the kubectl-convert binary against the checksum file :
304
+ Ahora se puede validar el binario utilizando el checksum :
304
305
305
306
` ` ` bash
306
307
echo "$( cat kubectl-convert.sha256) kubectl-convert" | sha256sum --check
307
308
` ` `
308
309
309
- If valid, the output is :
310
+ Si es válido, la salida será :
310
311
311
312
` ` ` console
312
313
kubectl-convert: OK
313
314
` ` `
314
315
315
- If the check fails , ` sha256` exits with nonzero status and prints output similar to :
316
+ En caso de falla , ` sha256` terminará con un estado diferente a cero con una salida similar a esta :
316
317
317
318
` ` ` console
318
319
kubectl-convert: FAILED
319
320
sha256sum: WARNING: 1 computed checksum did NOT match
320
321
` ` `
321
322
322
323
{{< note > }}
323
- Download the same version of the binary and checksum.
324
+ Descargue la misma versión del binario y del checksum.
324
325
{{< /note > }}
325
326
326
- 1. Install kubectl-convert
327
+ 1. Instalar kubectl-convert
327
328
328
329
` ` ` bash
329
330
sudo install -o root -g root -m 0755 kubectl-convert /usr/local/bin/kubectl-convert
330
331
` ` `
331
332
332
- 1. Verify plugin is successfully installed
333
+ 1. Verificar si el plugin fue instalado correctamente
333
334
334
335
` ` ` shell
335
336
kubectl convert --help
336
337
` ` `
337
338
338
- If you do not see an error, it means the plugin is successfully installed .
339
+ Si no visualiza ningún error quiere decir que el plugin fue isntalado correctamente .
339
340
340
341
1. After installing the plugin, clean up the installation files:
341
342
0 commit comments