GKE节点池创建报错:europe-west1区域中找不到m1-megamem-96机型
Hey there, let's walk through the most likely reasons you're hitting this 404 error when trying to create a GKE node pool with m1-megamem-96 in europe-west1-c, plus actionable fixes for each scenario:
1. Verify Zone-Specific Hardware Availability
Even if the europe-west1 region lists support for m1-megamem-96, not all zones within a region carry every machine type. Megamem instances require specialized hardware, which is often limited to specific zones.
To confirm exactly which zones in europe-west1 have this machine type, run this gcloud command:
gcloud compute machine-types list --filter="name:m1-megamem-96 AND zone:europe-west1-*"
If europe-west1-c doesn't appear in the results, switch to a zone that does (like europe-west1-b or europe-west1-a if listed).
2. Rule Out Quota or Permission Issues
Sometimes, a 404 error can mask underlying quota shortages or permission gaps:
- Quota Check: Ensure your project has enough quota for
m1-megamem-96instances ineurope-west1-c. You can verify this in the Google Cloud Console under IAM & Admin > Quotas, filtering for "m1-megamem-96". - Permission Validation: Confirm your account has the
compute.machineTypes.getpermission (included in roles likeCompute ViewerorEditor). Test this with:
If you get a permission error instead of "notFound", you'll need to adjust your IAM role assignments.gcloud compute machine-types describe m1-megamem-96 --zone europe-west1-c
3. Check for Legacy Machine Type Deprecation
The m1 series is a legacy instance family, and Google has been phasing out older machine types in some zones to make room for newer alternatives (like n2-megamem-96). It's possible m1-megamem-96 has been removed from europe-west1-c entirely.
4. Validate GKE Version Compatibility
Older GKE versions might not support certain legacy or newer machine types. Try creating the node pool with a recent stable GKE version (e.g., 1.28.x or later) to eliminate compatibility conflicts.
5. Double-Check Machine Type Spelling
It sounds simple, but make sure you didn't mistype the machine name. Confirm it's exactly m1-megamem-96 (no uppercase letters, correct hyphen placement, and the right vCPU count).
内容的提问来源于stack exchange,提问作者Satyajit Das

