k8s 常用命令
- # check component status are all healthy
 - 
$ kubectl get cs
NAME STATUS MESSAGE ERROR
controller-manager Healthy ok nil
scheduler Healthy ok nil
etcd-0 Healthy {"health": "true"} nil - Check master is running
 - 
kubectl cluster-info
Kubernetes master is running at http://localhost:8080 - # check nodes are all Ready
 - 
kubectl get nodes
NAME LABELS STATUS
kub-node1 kubernetes.io/hostname=kub-node1 Ready
kub-node2 kubernetes.io/hostname=kub-node2 Ready 
                    
                
                
            
        
浙公网安备 33010602011771号