How to Install kubectl CLI in windows 10

Go to the url https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html and select which version kubectl you want to download as per your requirements.

Determine whether you already have kubectl installed on your device.

kubectl version --client

If you have kubectl installed in the path of your device, the example output includes information similar to the following. If you want to update the version that you currently have installed with a later version, complete the next step, making sure to install the new version in the same location that your current version is in.

Client Version: v1.31.X-eks-1234567

If you receive no output, then you either don’t have kubectl installed, or it’s not installed in a location that’s in your device’s path.

Windows 10 – Install and configure kubectl

  • Install kubectl on Windows 10
mkdir kubectlbinary
cd kubectlbinary
Download the kubectl binary for your cluster’s Kubernetes version from Amazon S3.
Kubernetes 1.31

curl.exe -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.31.2/2024-11-15/bin/windows/amd64/kubectl.exe
  • Update the system Path environment variable
C:\Users\Saif\kubectlbinary
  • Verify the kubectl client version
kubectl version --client
#image_title

Leave a Reply

Shopping cart0
There are no products in the cart!
Continue shopping
0