Install and Set Up kubectl on RHEL


First, paste the "kubectl" file from the Google Drive link to your "pwd" (present working directory). You can use WinSCP or MobaXTerm to do that.

Google Drive link for "kubectl" binary: https://drive.google.com/open?id=1y9oSBm4TTzMVqkGXUOwOJWUrx920c_eJ

[ashish@Vbox ~]$ pwd
/home/ashish

[ashish@Vbox ~]$ ls
Documents    kubectl    Public...

[ashish@Vbox ~]$ sudo mv ./kubectl /usr/local/bin/kubectl
[sudo] password for ashish:

[ashish@Vbox ~]$ kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.6", GitCommit:"96fac5cd13a5dc064f7d9f4f23030a6aeface6cc", GitTreeState:"clean", BuildDate:"2019-08-19T11:05:16Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

Ref: https://kubernetes.io/docs/tasks/tools/install-kubectl/

No comments:

Post a Comment