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 Kubernetesarrow-up-right

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.

circle-info

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"
circle-info

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

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

To install kubectl in linux:

To install kubectl in MacOs:

Last updated

Was this helpful?