个性化支持
通过 Migrate to Containers 执行迁移的客户可以享受付费支持。与 Cloud Customer Care 团队联系以获取帮助。 有时,您可能需要使用 Sysreport 向支持团队提供额外信息,以帮助您解决问题。
向 Google Cloud 支持团队提供信息
Sysreport 会向 Migrate to Containers 支持团队提供有关您集群配置的信息。这有助于缩短解决问题的时间。
如需运行 Sysreport,请执行以下操作:
下载 Sysreport 脚本
collect_sysreport.sh
:migctl debug collect-info
此命令会将脚本下载到
/tmp/sysreportINDEX/collect_sysreport.sh
,其中INDEX
是唯一的索引值。切换到
/tmp/sysreportINDEX
目录:cd /tmp/sysreportINDEX
- 运行
collect_sysreport.sh
脚本:./collect_sysreport.sh [-n NAMESPACE] [-o OUTPUT_DIRECTORY] [-m MIGRATION]
其中:
- [NAMESPACE]:(可选)在其中部署了 Migrate to Containers 的命名空间(默认值为
v2k-system
)。 - [OUTPUT_DIRECTORY]:(可选)用于保存 Sysreport 的目录的路径(默认值为
$HOME
)。 - [MIGRATION]:(可选)为迁移收集的其他信息。
该脚本会创建您提供给 Google Cloud 支持的 anthos-migrate-logs.TIMESTAMP.tar.xz
。
默认情况下,该脚本会收集以下内容:
- 来自 Migrate to Containers CSI 控制器和 CSI 节点的日志。
- 来自 Migrate to Containers CSI 节点主机的 syslog。
- 来自 Migrate to Containers 控制器的日志。
- 来自集群的所有 Migrate to Containers 实体。
- 如果指定迁移,并且迁移使用默认的工件代码库,请从 [Cloud Storage(/storage)] 存储桶收集迁移工件。
- 以下各项的输出:
kubectl cluster-info
kubectl get nodes; kubectl describe node
kubectl version
kubectl top node
- 工作负载日志。
- 以下各项的输出:
ps aux
netstat -tlnp
iptables -t nat -L
fstab
kubectl get pod
kubectl describe pod
kubectl top pod --all-namespaces --containers
kubectl cluster-info dump
kubectl api-resources -o wide
kubectl top pod --all-namespaces --containers
kubectl api-resources -o wide
kubectl get componentstatuses --all-namespaces
kubectl get endpoints --all-namespaces
kubectl get events --all-namespaces
kubectl describe limits --all-namespaces
kubectl get namespaces
kubectl describe pvc --all-namespaces
kubectl describe pv --all-namespaces
kubectl describe quota --all-namespaces
kubectl describe sa --all-namespaces
kubectl describe services --all-namespaces
kubectl describe services --all-namespaces
kubectl get ingresses --all-namespaces
kubectl describe networkpolicies --all-namespaces
kubectl get podsecuritypolicies --all-namespaces
kubectl get clusterrolebindings --all-namespaces
kubectl describe storageclasses --all-namespaces
kubectl describe volumeattachments --all-namespaces