Installation of Kubectl

Kubectl is a command line tool that you use to communicate with the Kubernetes API server.

  • Kubernetes also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications.kubectl, allows you to run commands against Kubernetes clusters.

  • If you want to study about kubernetes in detail, open Kubernetes

Why kubectl is using in DIGIT?

There are some other tools like kubelet along with kubectl. kubectl is the command-line interface (CLI) tool for working with a Kubernetes cluster. Kubelet is the technology that applies, creates, updates, and destroys containers on a Kubernetes node.But the only difference is, using kubectl the developer can interacts with kubernetes cluster. So we are using kubectl in DIGIT.

Note: If you are using AWS as service to create cluster, You must use a kubectl version that is within one minor version difference of your Amazon EKS cluster control plane. For example, a 1.23 kubectl client works with Kubernetes 1.22, 1.23, and 1.24 clusters

To know kubernetes is installed:

kubectl version

To install or update kubectl:

In Windows:

curl.exe -LO "https://dl.k8s.io/release/v1.25.0/bin/windows/amd64/kubectl.exe"

If you want to download kubectl desired version just replace the version in above command with your version name

  • To download curl follow the page and proceed the download with curl https://www.wikihow.com/Install-Curl-on-Windows

  • Append or prepend the kubectl binary folder to your PATH environment variable. To perform this, complete the following steps:

  • Once you install kubectl, you can verify its version with the following command:

kubectl version --short --client

To install kubectl in linux:

To install kubectl in MacOs:

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.