Installing and Configuring the kubectl Tool
Deployment of the Lightbits CSI plugin can be carried out from any computer—including user laptops, Kubernetes cluster nodes, and other servers - with network access to the Kubernetes API server and to the Kubernetes cluster control plane using the standard kubectl tool. If kubectl
is not already installed on the machine in question, please install it before proceeding to the next subsection.
For full kubectl
installation instructions and configuration, including ways of obtaining the relevant kubeconfig file for the Kubernetes cluster and instructing kubectl
to use this kubeconfig file, see the Install and Set Up kubectl
section of the Kubernetes documentation.
$ kubectl cluster-info
Kubernetes master is running at https://1.2.3.4:6443
KubeDNS is running at https://1.2.3.4:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
kubernetes-dashboard is running at https://1.2.3.4:6443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready master 90d v1.17.5
node2 Ready node 90d v1.17.5
node3 Ready node 90d v1.17.5
Verify that kubectl
is configured and can communicate with the right Kubernetes cluster by executing the following commands (please note that the details of the output you will see will likely differ):