kubectl Command Line Tool

Install kubectl Command

wget https://grstatic.gitlab.com/binary/kubectl -O /usr/bin/kubectl
chmod +x /usr/bin/kubectl

As shown in the figure above, copy the kubeconfig file from the cluster list and write it to the path ~/.kube/config.

mkdir ~/.kube/
vi ~ / .kube / config

After the installation is complete, execute the following command, if successful, the code is installed successfully:

kubectl get node