查看版本
kubectl version
查看集群信息
kubectl cluster-info
返回值:
- Kubernetes master is running at https://139.224.245.150:6443
- metrics-server is running at https://139.224.245.150:6443/api/v1/namespaces/kube-system/services/heapster/proxy
- KubeDNS is running at https://139.224.245.150:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
查看当前节点
kubectl get nodes
可以从这个节点中看到当前节点是否 ready.