Friday 27 October 2023

Install Kubectl on WSL (Windows Subsystem for Linux)

 Kubectl is the command line which will help to do everything with AKS or any other kubernetes set up. To setup or update kubectl on WSL follow the steps below. 

  • Open WSL in Windows or using VS Code Terminal and execute below steps in WSL

  • Download kubectl specific version say 1.27.3 

    • curl -LO "https://dl.k8s.io/release/v1.27.3/bin/linux/amd64/kubectl"

  • Once download completes run below command to install kubectl in WSL.

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

  • Check the installed version

    • kubectl version --short

No comments:

Popular Posts