gke capacity triage
Triage a GKE workload stuck Pending because node provisioning fails with a Compute Engine capacity error (ZONE_RESOURCE_POOL_EXHAUSTED, "GCE out of resources", scale.up.error.out.of.resources) or a quota error (QUOTA_EXCEEDED). Separates resource unavailability from quota limits and configuration causes, explains why the ComputeClass fallback didn't help, and gives the documented ComputeClass, Pod-level, or cluster-level fix to apply. Use when a user pastes a scale-up failure alert or asks why P
Documentation & Preview
--- name: gke-capacity-triage description: >- Triage a GKE workload stuck Pending because node provisioning fails with a Compute Engine capacity error (ZONE_RESOURCE_POOL_EXHAUSTED, "GCE out of resources", scale.up.error.out.of.resources) or a quota error (QUOTA_EXCEEDED). Separates resource unavailability from quota limits and configuration causes, explains why the ComputeClass fallback didn't help, and gives the documented ComputeClass, Pod-level, or cluster-level fix to apply. Use when a user pastes a scale-up failure alert or asks why Pods are stuck Pending, lack nodes, or hit a stockout. Don't use for Standard-cluster TPU slices whose specific reservation lacks consumable instances, such as one held by unhealthy node pools with auto-repair disabled (gke-ai-troubleshooting-tpu-reservation-stockout), autoscaler enablement, profiles, or scale-down (gke-cluster-autoscaler), ComputeClass authoring without an incident (gke-compute-classes), Pods already on a node (gke-workload-troubleshooting, gke-storage-troubleshooting), or non-GKE clusters. metadata: version: "1.0.0" category: Containers
---
Triage GKE capacity constraints for a Pending workload
When Compute Engine can't create the machine shape that a ComputeClass priority rule asks for, or the project is at a quota limit, the cluster autoscaler immediately tries the next rule in the priorities list, as described in Analyze autoscaler fallback behavior. That section states one exception: "There is no waiting period before GKE falls back to the next priority, except when using TPUs or the Flex Start provisioning model, which support a configurable delay." To check for a configured delay, see the capacityCheckWaitTimeSeconds field in the "priorities" section of ComputeClass. The node pool that failed is retried after the backoff described in Backoff periods. Pods stay Pending when no rule can be satisfied, when the Pod or its volume pins a zone that is out of the shape, or when the cause is not capacity. This skill orders the checks, separates quota from resource availability and from configuration causes, and drafts the change for the user to apply.
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.
Prerequisites
- Google Cloud SDK and tools:
- For installing and initializing
gcloudand enabling the GKE API, follow
- For installing
kubectland getting cluster credentials, follow the
"Install kubectl", "Install required plugins", and "Store cluster information for kubectl" sections of Install kubectl and configure cluster access.
- Billing: The project needs an active Cloud Billing account.
- Required IAM roles (read-only triage):
roles/container.viewerand
roles/logging.viewer as listed in "Before you begin" of Troubleshoot custom ComputeClass issues; Compute Viewer (roles/compute.viewer) for the Spot availability check, as listed in "Required roles" of View the availability of Spot VMs; the compute.reservations.list and compute.reservations.get permissions to view reservations, as listed in "Required permissions" of View reservations or future reservation requests; and the permissions in Permissions for viewing quota for the quota check. The user who applies a ComputeClass change needs Kubernetes Engine Admin (roles/container.admin) or equivalent RBAC.
(Sections: "Before you begin")
(Sections: "Install kubectl", "Install required plugins", "View the current context for kubectl", "Store cluster information for kubectl", "Set a default cluster for kubectl commands")
(Sections: "Permissions for viewing quota")
(Sections: "Before you begin", "Verify cluster version compatibility", "Verify Pod status and selector", "Verify provisioned nodes for the custom ComputeClass", "Check ComputeClass health and status", "Validate the unsatisfiable policy", "Verify Pod resource requests", "Check for conflicting taints and tolerations", "Analyze node provisioning failures", "Interpret failure reasons", "Check resource limits for node pool auto-creation", "Analyze autoscaler fallback behavior", "Check for resource unavailability", "Verify project quotas", "Verify GPU configuration", "Verify Spot VMs configuration")
(Sections: "Check if you have unschedulable Pods", "Check if you previously had unschedulable Pods", "Check if the issue is caused by a limitation", "View errors in events", "Example: Troubleshoot an issue over 72 hours old", "ScaleUp errors", "Reasons for a noScaleUp event", "NoScaleUp top-level reasons", "NoScaleUp MIG-level reasons", "NoScaleUp Pod-group-level node auto-provisioning reasons", "Investigate errors in Logs Explorer")
(Sections: "Types of events", "ScaleUp event", "EventResult event", "NoScaleUp event")
(Sections: "Minimum and maximum node pool size", "Backoff periods", "Limitations")
(Sections: "Enabling autoscaling for an existing node pool")
(Sections: "Choose your fallback compute priorities", "Priority rule scores", "Top-level node properties for priority rules", "TPU configuration", "Target AI zones", "Define scaling behavior when no priority rules apply", "Active migration", "Consume Compute Engine reservations", "Auto-create node pools to consume reservations", "Default ComputeClasses for clusters and namespaces")
(Sections: "Explicitly define the last-resort scaling behavior", "Disable active migration", "Improve scheduling reliability by using StorageClasses", "Request machine series instead of machine types", "Use capacity reservations for in-demand hardware", "Don't consume new reservations for at least one hour")
(Sections: "ComputeClass specification", "priorities", "location", "priorityDefaults", "reservations", "specific", "flexStart")
(Sections: "Considerations", "Place Pods in multiple zones using nodeAffinity", "Prioritize Pod placement in selected zones using a compute class")
(Sections: "Node scale up failed: Compute Engine out of resources", "Nodes fail to scale up: Pod zonal resources exceeded", "Workload scheduled on older machine series or stuck in Pending state due to storage incompatibility")
(Sections: "Not enough free IP address space for Pods")
(Sections: "Quotas and resource availability", "CPU quota limits", "GPU quota", "TPU quota", "Preemptible quotas")
(Sections: "Resolve resource availability errors", "Resolve errors by error reasons", "Resolve errors when you create TPU slices")
(Sections: "Required roles", "View the availability of Spot VMs")
(Sections: "Limitations", "Required permissions", "View reservations", "Determine the number of consumable instances")
(Sections: "Confirm node preemption")
(Sections: "Overview of Spot VMs in GKE")
(Sections: "Requirements", "Limitations")
(Sections: "Limitations for all Flex-start VMs")
(Sections: "Observe the status of a Provisioning Request", "Troubleshoot quota issues")
(Sections: "Consuming a specific shared reservation", "Consume a specific shared reservation in Autopilot", "Troubleshooting consuming reservations in Autopilot")
(Sections: "Multi-host TPU slice node pools", "Single-host TPU slice node pools")
(Sections: "Insufficient quota to satisfy the TPU request", "Quota for on-demand or Spot VMs", "How GKE handles capacity issues", "Insufficient TPU resources to satisfy the TPU request")
- [Persistent Disk](https://docs.cloud.google.com/compute/docs/disks/persis