May 2018
Intermediate to advanced
554 pages
13h 51m
English
After you install the Kubernetes master, you can use the Kubernetes command-line interface, kubectl, to control the Kubernetes cluster. For example, kubectl get cs returns the status of each component. Also, kubectl get nodes returns a list of Kubernetes nodes:
//see the Component Statuses# kubectl get csNAME STATUS MESSAGE ERRORcontroller-manager Healthy ok nilscheduler Healthy ok niletcd-0 Healthy {"health": "true"} nil//see the nodes# kubectl get nodesNAME LABELS STATUS AGEkub-node1 kubernetes.io/hostname=kub-node1 Ready 26dkub-node2 kubernetes.io/hostname=kub-node2 Ready 26d