K8S命令详解
一、查看集群
1、查看集群信息
kubectl get nodes
结果:
1、NAME STATUS ROLES
2、master01 Ready control-plane
3、node01 Ready worker
4、node02 Ready worker
查看更详细信息:
1、kubectl get nodes -o wide
2、查看集群状态
kubectl cluster-info
结果:
1、Kubernetes control plane is running at https://本机IP:端口
例如:https://本机IP:端口
2、CoreDNS is running at https://本机IP:端口/路径

浙公网安备 33010602011771号