kubectl cluster-info
Below are the commands to get cluster status based on requirements:
To get information regarding where your Kubernetes master is running at, CoreDNS is running at, kubernetes-dasboard is running at, use
kubectl cluster-infoTo get detailed information to further debug and diagnose cluster problem, use
kubectl cluster-info dumpTo get only the health status for your node use,
kubectl get componentstatusorkubectl get cs
*To show detailed information about a resource use kubectl describe node <node>
The below command would display the health of scheduler, controller and etcd
kubectl get cs
Command below lists Kubernetes core components like, etcd, controller, scheduler, kube-proxy, core-dns, network plugin. All those pods should be running to be sure that Kubernetes is healthy.
kubectl get pod -n kube-system
Finally deploy one front-end and back-end Pod and verify the inter-pod communication to ensure that cluster is up and working correctly.
No comments:
Post a Comment