如果您尝试在不受支持的 GKE 版本或不受支持的Google Cloud 区域中部署 Arm 工作负载,则 Autopilot 集群中会出现以下问题。
如需找出此问题,请获取集群事件日志:
kubectlgetevents-w
输出类似于以下内容:
117s Normal NotTriggerScaleUp pod/hello-app2-78fc858558-pg4hz pod didn't trigger scale-up (it wouldn't fit if a new node is added): 2 node(s) didn't match Pod's node affinity/selector
如需解决此问题,请确保 Autopilot 集群正在运行 GKE 1.24.1-gke.1400 版或更高版本,并且Google Cloud 区域支持 Arm 节点。
Pod 卡滞在“待处理”状态
适用对象:Autopilot
如果您尝试在 Arm 架构上部署 Autopilot Pod,但您的 Google Cloud 项目已用完配额,则会出现以下问题。
如需找出此问题,请获取集群事件日志:
kubectlgetevents-w
输出类似于以下内容:
29m Warning FailedScaleUp pod/hello-app-7b86c88cb8-8vt2k Node scale up in zones asia-southeast1-b associated with this pod failed: GCE quota exceeded. Pod is at risk of not being scheduled.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-26。"],[],[],null,["# Troubleshooting Arm workloads\n\n[Autopilot](/kubernetes-engine/docs/concepts/autopilot-overview) [Standard](/kubernetes-engine/docs/concepts/choose-cluster-mode)\n\n*** ** * ** ***\n\nThis page shows you how to resolve issues with Arm workloads deployed on your\nGoogle Kubernetes Engine (GKE) Autopilot or Standard clusters.\n\nPods on Arm nodes crashing\n--------------------------\n\nThe following issue occurs when you deploy a Pod on an Arm node, but the\ncontainer image isn't built for Arm architecture.\n\nTo identify the issue, do the following:\n\n1. Get the status of your Pods:\n\n kubectl get pods\n\n2. Get the logs for a crashing Pod:\n\n kubectl logs \u003cvar translate=\"no\"\u003ePOD_NAME\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePOD_NAME\u003c/var\u003e with the name of the crashing Pod.\n\n The error message in your Pod logs is similar to the following: \n\n exec ./hello-app: exec format error\n\nTo resolve this issue, ensure that your container image supports Arm\narchitecture. As a best practice,\n[build multiple architecture images](/kubernetes-engine/docs/how-to/build-multi-arch-for-arm).\n\nPod doesn't trigger scale-up\n----------------------------\n\n**Applies to:** Autopilot\n\nThe following issue occurs in Autopilot clusters when you attempt to\ndeploy Arm workloads on unsupported GKE versions or unsupported\nGoogle Cloud regions.\n\nTo identify the issue, get your cluster event log: \n\n kubectl get events -w\n\nThe output is similar to the following: \n\n 117s Normal NotTriggerScaleUp pod/hello-app2-78fc858558-pg4hz pod didn't trigger scale-up (it wouldn't fit if a new node is added): 2 node(s) didn't match Pod's node affinity/selector\n\nTo resolve this issue, ensure that your Autopilot cluster is running\nGKE version 1.24.1-gke.1400 or later, and that the\nGoogle Cloud region supports Arm nodes.\n\nPods stuck in Pending state\n---------------------------\n\n**Applies to:** Autopilot\n\nThe following issue occurs when you attempt to deploy Autopilot Pods on\nArm architecture but your Google Cloud project is out of quota.\n\nTo identify the issue, get the event log for your cluster: \n\n kubectl get events -w\n\nThe output is similar to the following: \n\n 29m Warning FailedScaleUp pod/hello-app-7b86c88cb8-8vt2k Node scale up in zones asia-southeast1-b associated with this pod failed: GCE quota exceeded. Pod is at risk of not being scheduled.\n\nThis event might not appear in your log as soon as you deploy your Pods.\n\nTo help resolve this issue,\n[request a quota adjustment](/docs/quotas/help/request_increase).\n\nWhat's next\n-----------\n\n- If you can't find a solution to your problem in the documentation, see\n [Get support](/kubernetes-engine/docs/getting-support) for further help,\n including advice on the following topics:\n\n - Opening a support case by contacting [Cloud Customer Care](/support-hub).\n - Getting support from the community by [asking questions on StackOverflow](http://stackoverflow.com/questions/tagged/google-kubernetes-engine) and using the `google-kubernetes-engine` tag to search for similar issues. You can also join the [`#kubernetes-engine` Slack channel](https://googlecloud-community.slack.com/messages/C0B9GKTKJ/) for more community support.\n - Opening bugs or feature requests by using the [public issue tracker](/support/docs/issue-trackers)."]]