Skip to content

Instantly share code, notes, and snippets.

@qaiserali
Last active February 13, 2024 21:25
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save qaiserali/18926b5bd9ca7a0551195d449bf31eb6 to your computer and use it in GitHub Desktop.
Save qaiserali/18926b5bd9ca7a0551195d449bf31eb6 to your computer and use it in GitHub Desktop.
How to upgrade kubectl on Ubuntu
## Step1: Run the below command to download the latest version of kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
## Step2: Make kubectl executable
chmod +x kubectl
## Step3: Move it to the directory where kubectl is already installed
sudo mv kubectl $(which kubectl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment