创建集群和节点池后,您可以使用 Google Cloud CLI 或 Google Cloud 控制台来查看集群的状态。
gcloud CLI
如需查看关联集群的状态,请运行以下命令:
gcloud container attached clusters describe CLUSTER_NAME \ --location=GOOGLE_CLOUD_REGION
您需要进行如下替换:
- CLUSTER_NAME:您的集群的名称
- GOOGLE_CLOUD_REGION:用于管理您的集群的 Google Cloud 区域的名称
如需了解详情,请参阅 gcloud container attached clusters describe。
如需查看某个 Google Cloud 区域中所有集群的状态,请运行以下命令:
gcloud container attached clusters list --location=GOOGLE_CLOUD_REGION
将 GOOGLE_CLOUD_REGION 替换为用于管理您的集群的 Google Cloud区域的名称。
如需了解详情,请参阅 gcloud container attached clusters list。
控制台
在 Google Cloud 控制台中,前往 Google Kubernetes Engine 集群概览页面。
您的集群按其名称和位置列出。
点击集群的名称。此时会显示一个面板,其中包含集群的相关信息,包括其状态和已启用的功能。