Sunday, August 6, 2017

How To Install kubectl (Kubernetes command-line tool) using Chocolatey

kubectl stands for Kubernetes command-line tool, used for running commands against Kubernetes clusters. In this article, we would discuss how to install kubectl in Windows system using Chocolatey, a Windows package manger. Install Chocolatey if you don't have it in your system.

Install kubectl using Chocolatey



C:\Windows\system32>choco install kubernetes-cli

Verify Your kubctl Installation


C:\Windows\system32>kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", 
GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", 
BuildDate:"2017-07-21T08:23:22Z", GoVersion:"go1.8.3", Compiler:"gc", 
Platform:"windows/amd64"}
Unable to connect to the server: dial tcp [::1]:8080: connectex: 
No connection could be made because the target machine actively refused it.
C:\Windows\system32>

Thank you for reading this article. Now you have kubectl in your system to deploy and manage application in Kubernetes and also manage the different Kubernetes resources. Happy Learning!!

No comments:

Post a Comment