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:
To install or update kubectl:
In Windows:
Download the kubectl latest release v1.25.0. or if you have curl installed use this command:
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 yourPATH
environment variable. To perform this, complete the following steps:
Once you install
kubectl
, you can verify its version with the following command:
To install kubectl in linux:
Open the below link to install kubectl in linux: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
To install kubectl in MacOs:
Open the below link to install kubectl in macos: https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/
Last updated