验证

在安装程序完成后、继续执行后续安装任务之前,验证 Core 和所需的 Aligned Extensions。

前提条件

  • 安装已完成。
  • 你可以访问安装程序显示的平台 Web UI 地址。
  • 你可以在安装节点上运行 kubectl

验证 Web UI 访问

安装完成后,安装程序会显示平台访问 URL。单击 Access 打开平台 Web UI,并验证平台登录页面是否可访问。

验证 Core 应用、扩展和 Pod

在新的 global 集群的控制平面节点上运行以下命令,以确认已安装状态:

# All nodes are Ready
kubectl get nodes

# ClusterModule/global reports the base module as healthy
kubectl get clustermodule global -o jsonpath='{.status.phase}'

# No AppRelease is in a failed state
kubectl get apprelease -A

# Core and Aligned modules report their current phase and version
kubectl get moduleinfo -l cpaas.io/cluster-name=global

# No Pod is stuck outside Running or Completed
kubectl get pod --all-namespaces | awk '{if ($4 != "Running" && $4 != "Completed")print}' | awk -F'[/ ]+' '{if ($3 != $4)print}'

当满足以下条件时,安装状态正常:

  • 所有 global 集群节点均为 Ready
  • ClusterModule/global 报告健康的阶段。
  • 每个 AppRelease 都处于非失败状态。
  • 已安装以下应用,并且其对应的 ModuleInfo 资源在目标版本上报告为 Running
    • Alauda Container Platform Web Console
    • Alauda Container Platform Web Console Central
    • Alauda Container Platform Marketplace Web Console
    • Alauda Container Platform Helm Application Catalog
    • Alauda Container Platform Observability Essentials
    • Alauda Container Platform Essentials
    • Alauda Container Platform Cluster Essentials
    • Alauda Container Platform GatewayAPI Plugin
  • cpaas-system 中的关键 Pod 处于 RunningCompleted 状态。

在 Web Console 中,打开 Administrator > Marketplace > Cluster Plugins,并确认所需应用可用,且没有安装失败。

验证平台镜像源

确认 ProductBase 记录了预期的平台镜像源:

kubectl get productbase base \
  -o jsonpath='{.spec.registry.address}{"\t"}{.spec.registry.external}{"\n"}'

对于外部 registry,地址必须与准备好的 registry 匹配,且第二个值必须为 true

对于经过认证的外部 registry,请确认 pull Secret 存在,但不要输出其内容:

kubectl -n cpaas-system get secret global-registry-auth

确认 global 集群记录了相同的 registry 地址:

kubectl -n cpaas-system get cluster global \
  -o jsonpath='{.metadata.annotations.cpaas\.io/registry-address}{"\n"}'

ProductBase 还包含可选或未安装 Extensions 的 catalog 条目。不要要求 ProductBase.status.artifacts 中的每个条目都为 Ready;一个无关的 Absent 条目本身并不表示安装失败。

确认所需的 Extension catalog 条目存在,并且 Pod 未被镜像拉取阻塞:

kubectl get moduleplugins

kubectl get pods --all-namespaces \
  | awk '$4 ~ /ImagePullBackOff|ErrImagePull/'

Pod 命令必须没有任何输出。安装验收基于所需应用、其 ModuleInfoAppRelease 状态,以及其运行中的 Pod。如果某个必需的已安装应用不可用,请按照 Installation Troubleshooting 进行排查,以区分是缺少 manifest,还是 DNS、路由、防火墙、CA 信任、拉取凭证或 registry 可用性问题。

下一步

验证成功后,继续执行 下一步