Advertisement
niels68

install-kubectl

Jan 30th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | Fixit | 0 0
  1. #!/bin/bash
  2.  
  3. # Descargar la última versión estable de kubectl
  4. curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
  5.  
  6. # Hacer ejecutable el binario de kubectl
  7. chmod +x ./kubectl
  8.  
  9. # Mover kubectl al directorio de binarios del usuario
  10. sudo mv ./kubectl /usr/local/bin/kubectl
  11.  
  12. # Verificar la instalación
  13. kubectl version --client
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement