Instalando kubectl en Linux

Descargando el ejecutable

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

Descargando el checksum

curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"

Verificando que el ejecutable descargado es correcto

echo "$(<kubectl.sha256) kubectl" | sha256sum --check

Instalando

sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

Confirmando que está instalando

kubectl version

Versión completa en inglés:

Install and Set Up kubectl on Linux
Before you begin You must use a kubectl version that is within one minor version difference of your cluster. For example, a v1.23 client can communicate with v1.22, v1.23, and v1.24 control planes. Using the latest compatible version of kubectl helps avoid unforeseen issues.Install kubectl on Linux…
Mostrar comentarios