andrejsstepanovs

install kubectl

Nov 4th, 2020 (edited)
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
  4.  
  5. chmod +x ./kubectl
  6. sudo mv ./kubectl /usr/local/bin/kubectl
  7. kubectl version --client
  8.  
  9.  
  10. # swapoff -a
  11. # sed -i '/ swap / s/^/#/' /etc/fstab
  12.  
Add Comment
Please, Sign In to add comment