Comprehensive guide to GKE cost optimization covering Standard node pools and Autopilot resource requests

Kubernetes makes it easy to ask for more capacity than your apps actually use. In Google Kubernetes Engine (GKE), that extra capacity shows up on your bill in two ways. Therefore, effective GKE cost optimization means fixing two distinct problems: running too many nodes in Standard clusters, and setting pod resource requests above actual usage in Autopilot clusters. In Standard mode, you pay for virtual machines even when they sit empty. In Autopilot mode, you pay for the CPU and memory your pods ask for, even if those containers barely use them.

Key takeaways

  • Standard and Autopilot clusters both carry a $0.10 per hour control plane fee, but they bill compute in completely different ways.
  • Standard node pools waste money when the running node count stays higher than the total pod requests placed on them.
  • Autopilot workloads waste money when pod CPU and memory requests sit well above peak container usage.
  • Every GKE cost reduction follows a 3-step loop: verify workload constraints and owners, change the node pool or pod template, and check the next days’ billing export.

How GKE Standard and Autopilot are billed

Before you change any cluster settings, you need to know how Google Cloud charges you. According to the Google Kubernetes Engine pricing documentation, both operating modes charge a flat management fee of $0.10 per cluster per hour, billed in one-second increments. In addition, the GKE free tier gives each billing account $74.40 in monthly credits toward zonal and Autopilot management fees. However, your compute charges depend entirely on the cluster mode you pick.

In GKE Standard, you manage the worker nodes yourself. You create node pools with specific Compute Engine machine types. As a result, Google bills you for each virtual machine instance from the moment it starts until it stops. Your Compute Engine bill stays the same whether a node runs dozens of busy pods or sits mostly empty.

On the other hand, GKE Autopilot manages the nodes for you. You do not pick machine types or size node pools. Instead, Google bills you for the vCPU, memory, and ephemeral storage that your running pods request. Furthermore, the Autopilot resource request rules enforce minimum and maximum limits based on the compute class you use. If you leave requests blank, Autopilot applies default values automatically. Therefore, your pod specs directly set your hourly run rate.

Node pools with more nodes than pod requests need

In a GKE Standard cluster, overprovisioning often hides at the node pool level. For example, a node pool with a chosen machine type in your project might run a steady, typical number of nodes over an evaluation period. You pay the gross Compute Engine cost for all those nodes every day they run.

However, the Kubernetes scheduler does not look at your node bill. Instead, it places pods based on their resource requests. Furthermore, every node sets aside some CPU and memory for the operating system, kubelet, and container runtime. The remaining space is the node’s allocatable capacity. On top of your own apps, the node pool also has to run GKE’s own system pods.

When you add up the requests of all pods placed on that pool—including GKE’s system pods—over the judged days, you can find the peak number of nodes actually needed. For safe operation, you calculate this peak at a target fill percentage of a node’s allocatable capacity, while keeping a set minimum number of nodes for availability. If the pool’s typical node count is higher than that peak requirement, those extra, removable nodes can go.

You can check this gap yourself using native Google Cloud tools. First, check Cloud Monitoring metrics to compare total pod requests against node allocatable capacity across the pool. Next, check your Google Cloud Billing export in BigQuery to see the gross Compute Engine charges for those nodes over those days.

Autopilot workloads that request more than they use

Autopilot removes idle node waste, so the cost problem moves into your workload YAML files. Consider a Deployment, StatefulSet, or DaemonSet running in a specific namespace of an Autopilot cluster. Each pod asks for a set amount of vCPU and memory in GiB. Because Autopilot bills by the request, that workload claims an estimated share of the cluster’s request charges every day.

However, developers often guess high when they pick resource requests. They add extra headroom to avoid out-of-memory kills or CPU throttling during launch, and they rarely lower those numbers later. When you check Cloud Monitoring container metrics over a multi-day period, you often find that the containers peaked at a small fraction of their requested vCPU and GiB.

To fix this gap, you calculate lower CPU and memory requests based on that observed peak. Instead of matching the peak directly, you pick recommended values that run the containers at a safe target utilization percentage at peak load. Lowering the workload’s requests toward those recommended values cuts its share of the cluster’s request charges while leaving a buffer for normal traffic jumps.

Check first: disruption budgets, spread, autoscalers and rollout headroom

Billing data and past usage charts never tell the whole story. The Google Cloud Billing export shows what you spent, and Cloud Monitoring shows what your containers used on the judged days. However, billing data cannot prove what your cluster needs during a failover, a deployment rollout, or a monthly traffic spike. Therefore, before you touch a node pool or edit a pod template, talk to the workload owner and check its dependencies and recovery needs.

Verification steps for Standard node pools

Before you shrink a Standard node pool, check why those extra nodes were running in the first place. Look at five specific areas:

  1. Pod Disruption Budgets (PDBs): Check if strict PDBs block the cluster from draining nodes. If a budget requires a high number of available replicas, the autoscaler cannot evict pods to remove an underused node.
  2. Topology spread and anti-affinity: Review topologySpreadConstraints and pod anti-affinity rules. If a workload forbids two replicas from sharing a node or forces an even spread across availability zones, the scheduler needs more nodes even when CPU and memory sit empty.
  3. Local storage: Check if pods use emptyDir volumes or local SSDs without safe eviction flags. By default, the cluster autoscaler refuses to remove a node if doing so deletes local pod data.
  4. Rollout and failover headroom: Confirm how much free space your apps need during a rolling update or a zone outage. A maxSurge deployment creates new pods before it stops old ones, which temporarily requires extra node space.
  5. Observation window limits: Remember that the peak node demand was read on the judged days only. Check with the service owner to see if seasonal traffic or batch jobs require more capacity outside that window.

Verification steps for Autopilot workloads

Lowering pod requests in Autopilot can trigger unwanted scaling if you do not check your autoscalers first. Check two things before you edit any YAML:

  1. Horizontal Pod Autoscaler (HPA) rules: Check whether an HPA scales the workload on CPU or memory utilization percentage. The HPA calculates utilization by dividing current usage by the pod’s requested amount. As a result, smaller requests drive the utilization percentage up, which makes the HPA add replicas. If you cut requests in half and the HPA doubles the replica count, you do not lower your bill. You must adjust the HPA target percentage at the same time.
  2. Expected load versus judged days: Compare the observed CPU and memory peaks against your expected high-water load. Because the peaks come from the judged days only, make sure you are not sizing a critical service based on a quiet week or holiday.

GKE cost optimization in practice: resize, autoscale or lower requests

Once you verify your dependencies, owners, and scaling rules, you can make the changes to improve your GKE cost efficiency. The method depends on whether you run Standard or Autopilot.

For a GKE Standard node pool with removable nodes, you have two choices: reduce the pool’s node count manually, or let the cluster autoscaler manage it. If the cluster runs steady, predictable workloads, you can resize the node pool down to the needed node count. However, for most environments, enabling the GKE cluster autoscaler is the safer choice. Configure autoscaling on the pool with a minimum node count that keeps the needed baseline nodes for availability, and set a maximum limit that handles your rollout and traffic spikes.

For an Autopilot workload that requests more than it uses, lower the CPU and memory requests toward your target values if the workload’s load allows it. Update the resources.requests section in the controller’s pod template inside your Deployment, StatefulSet, or DaemonSet manifest. Make sure the new numbers stay above Autopilot’s enforced minimums for that compute class. Finally, roll out the updated template through your standard deployment pipeline and watch the new pods start up cleanly.

Check the following days’ charges

GKE cost optimization does not end when a rollout finishes. In Kubernetes, a change in one place often shifts costs to another. For example, a node drain might stall on a forgotten PDB, or an adjusted HPA might add unexpected pod replicas during peak hours.

Therefore, you must check the following days’ charges in your Google Cloud Billing export or the Cloud Billing console reports.

  • For Standard clusters: Filter your billing report by the project, cluster label, and Compute Engine SKUs to check the following days’ Compute Engine charges of the pool’s nodes. Confirm that the billed instance hours dropped in line with the removed nodes.
  • For Autopilot clusters: Filter your billing data by the GKE Autopilot service SKUs and cluster labels to check the following days’ Autopilot request charges of the cluster. Verify that the workload’s lower CPU and memory requests reduced the cluster’s daily vCPU and memory charges without causing replica spikes.

How Binadox helps uncover GKE resource overprovisioning

Checking pod request math and container peak metrics across dozens of clusters by hand takes hours. Binadox is a cloud cost visibility and optimization tool that flags these two GKE overprovisioning patterns automatically.

For Standard clusters, Binadox flags when a GKE node pool keeps more nodes than its pods request. It identifies the node pool, machine type, cluster name, and project ID, and shows how many nodes the pool typically ran over the judged dates. It calculates the peak nodes needed—including GKE’s own pods—at a target fill percentage of a node’s allocatable capacity, notes the minimum nodes required, states how many removable nodes could go, and reports the gross cost of the pool’s nodes on those days.

For Autopilot clusters, Binadox flags when an Autopilot workload requests more than it uses. It names the controller type, controller name, namespace, cluster name, and project ID. It compares the current vCPU and GiB requested per pod against the containers’ actual peak vCPU and GiB over the judged days. Finally, it gives recommended CPU and memory requests calculated to run the containers at a target utilization percentage at peak, along with the workload’s estimated share of the cluster’s request charges on those days.

Conclusion

Fixing Kubernetes spend is rarely about hunting down a single rogue resource. Instead, practical GKE cost optimization comes down to matching what you ask for with what your workloads actually need. In Standard mode, you close the gap between the virtual machines you keep running and the pod requests placed on them. In Autopilot mode, you close the gap between the vCPU and memory a pod requests and what its containers actually use at peak.

Of course, Kubernetes gives you plenty of ways to break an app if you cut capacity blindly. A strict disruption budget, a zone spread rule, or an eager horizontal pod autoscaler will quickly punish a rushed edit. Check your rollout headroom and scaling rules first, make the change, and check the next few days of billing data. Your cluster will run just as reliably, and you can stop paying Google Cloud to host empty air.

To stop guessing at your GKE capacity needs and start cutting unnecessary cloud spend today, you can start a free trial or book a demo with our team to see your cluster waste analyzed automatically.