K8s命令大全详解
一、查看集群信息1、查看集群节点
kubectl get nodes输出:
NAME STATUS ROLES master01 Ready control-plane node01 Ready worker node02 Ready worker查看更详细信息:
kubectl get nodes -o wide2、查看集群状态
kubectl cluster-info输出:
Kubernetes control plane is running at https://10.0.0.1:6443 CoreDNS is running at https://10.0.0.1:6443/api/v1作用:
<