Skip to content

Instantly share code, notes, and snippets.

@ralexrdz
Last active December 2, 2020 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralexrdz/f145560c6e61742c065b9bfebdc6b5cb to your computer and use it in GitHub Desktop.
Save ralexrdz/f145560c6e61742c065b9bfebdc6b5cb to your computer and use it in GitHub Desktop.

Instalacion de kubectl y configuración de acceso a cluster

Correr en terminal

(no importa en qué directorio, acabará moviendose a PATH)

curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

Probar instalacion

kubectl version

Configurar acceso a cluster

cp <your-k8s-config-file> ~/.kube/config

Comprobar acceso

kubectl get nodes

(deberia mostrar los nodos de tu cluster)

Pro tips

echo "source <(kubectl completion zsh)" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment