
Essay Containers & Clusters
Running Multiple Services on One Kubernetes Cluster Cheaply
Consolidation only saves money if requests, scaling, and isolation stay disciplined.
Running multiple services on one Kubernetes cluster cheaply starts with consolidation, but it does not end there. A shared cluster is the right default for cost-conscious teams only when namespace isolation, accurate resource requests, and coordinated autoscaling keep its costs tied to the work it actually does.
Why a single shared cluster is the right default starting point for cost-conscious teams
Each cluster needs a control plane and monitoring stack of its own, along with upgrades and credential rotation. When services are split across clusters, each environment pays that overhead again, even if the workloads are small. Consolidation removes some of those baseline costs before any pod-level tuning begins.
The provider changes the size of that saving. EKS and GKE Standard charge for control planes per cluster, while AKS offers a free control plane on its Free tier without an SLA. AKS Standard, which is used for production, has an hourly charge. A shared cluster is therefore a good place to start, with separate clusters kept for workloads that need enough isolation to warrant the extra cost.
Why shared clusters quietly return to wasteful baselines without active management
Consolidation changes what a team has to manage. Instead of maintaining several separate pools of capacity, it must keep different workloads from making one shared pool wasteful. Stateless APIs, batch jobs, inference endpoints, and GPU workloads have different resource needs. Tuning that suits one can break the assumptions behind another.
Autoscaling adds another source of drift because HPA, VPA, Cluster Autoscaler, and Karpenter act on different signals and timescales. Without coordination, their decisions can produce oscillation and over-provisioning. Meanwhile, every new service can introduce another set of oversized default requests. A cleanup does not stop the next deployment.
That is why an unmanaged cluster can move back toward its old cost within months. The traffic need not increase for the infrastructure bill to grow. Fresh requests, conflicting scaling rules, and stale non-production environments can do that on their own. The practices that follow address these specific sources of waste, rather than treating consolidation as a finished optimization.
Namespace isolation as the foundation of multi-service cost control and security
Namespace-based tenancy gives internal teams and environments their own boundaries for cost and policy without a control plane for each tenant. It supports cost attribution, quota enforcement, and role-based access control, or RBAC, with low overhead. That makes it the right default for most internal multi-service clusters. Teams need a boundary they can actually manage.
Stronger isolation has its place, but costs more. Virtual clusters, such as vCluster, have medium-hard isolation and a low control plane cost for each tenant, making them a good fit for platform engineering and SaaS back-ends. Dedicated clusters give external customers or strictly regulated workloads hard isolation, with the full cost of a control plane. Those options pay for isolation guarantees that most internal workloads rarely need.
A namespace alone is not the whole security model. RBAC controls who has access, network policies limit what can communicate, and resource quotas cap how much capacity a tenant can claim. Pod Security Standards and policy engines such as Kyverno and OPA Gatekeeper add enforcement against unsafe configurations. For GDPR, HIPAA, and SOC 2 workloads, namespace isolation and quotas form part of tenant separation alongside the rest of the controls.
Namespace-level attribution connects a portion of the bill to the team responsible for it. Without that link, infrastructure telemetry shows how much is used but leaves it unclear who owns it. A team cannot make accountable trade-offs against a cost it cannot see.
Accurate resource requests as the single highest-confidence cost lever
Kubernetes schedules against resource requests. Oversized requests reserve scheduler capacity, drive node count, and increase cloud cost even when applications use little of what they asked for. That makes request tuning the first high-confidence compute saving.
Observe utilization through Prometheus over a representative period of days or weeks, then compare current requests with observed averages. Reduce requests gradually and watch for latency or out-of-memory regressions before making the next change. This simple comparison can show a lot of waste without a complex system for analysis.
CPU and memory need different safety margins. CPU throttling slows a service, while exceeding a memory limit can trigger an OOMKill and turn a cost change into a production incident. Memory sizing therefore needs a larger buffer.
VPA in Recommend mode is a good place to start because it suggests changes to requests without making those changes on its own. Kubecost or OpenCost then connects those recommendations to workload and namespace spending, making the outcome measurable. Tinybird reduced AWS spending significantly while scaling faster with EKS and Karpenter. That example shows the potential of tuning requests and autoscaling together.
Coordinated autoscaling: making HPA, VPA, and Karpenter work together rather than against each other
Even with correct requests, scaling rules need to work as traffic changes. For most shared clusters, the useful division of work is HPA for replica counts on variable-traffic stateless services, VPA in Recommend mode for request tuning, and Karpenter for node provisioning and consolidation. Each tool gets a distinct job to do. Cluster Autoscaler and Karpenter should not manage the same node group simultaneously.
HPA and VPA also need a clear boundary. Running both against CPU at the same time can make their decisions conflict and oscillate. For most web workloads, an HPA target of 70–80% CPU utilization is a useful starting point. Where available, requests per second or queue depth can provide a more accurate scaling signal.
Karpenter consolidation using WhenUnderutilized is the default choice for most workloads, but stateful services need more restraint. NodePools serving Kafka, streaming pipelines, or ML training should use the consolidationPolicy field with WhenEmpty, which considers only nodes with no workload pods. Critical stateful pods can use the karpenter.sh/do-not-disrupt annotation set to "true" to prevent consolidation drains. With these safeguards, the team chooses to cut back less on nodes.
Stability takes priority over savings for these workloads. Pod Disruption Budgets are necessary when using Spot or aggressive consolidation because uncontrolled eviction can remove enough replicas to degrade a service. They belong in the scaling design. Node utilization is a sound target for optimization only while the services on those nodes keep running well.
EKS and GKE Standard charge for control planes per cluster, while AKS offers a free control plane on its Free tier without an SLA.
Network and load-balancer costs: the invisible budget drain in multi-service clusters
Saving on compute can make a rising network bill easy to miss. Each Service with type set to LoadBalancer provisions a cloud load balancer, and many such services can accumulate hundreds to over a thousand dollars per month in load-balancer fees alone. Adding services to a shared cluster can simply collect the per-service charges in one place.
The practical fix is to consolidate suitable services behind one Ingress controller, such as nginx, Traefik, or a cloud-native equivalent. Host-based or path-based routing lets them share an ingress point, so each service no longer needs its own load balancer. Cross-zone calls need a separate response because they accrue per-GB charges in each direction. Those charges can be hard to spot in standard cloud dashboards.
To reduce cross-zone traffic, set the trafficDistribution field on Service specs to PreferSameZone where supported. This favors same-zone endpoints when there is enough capacity, without the need to set manual affinity rules. A staging environment used only during business hours wastes compute overnight and on weekends, so scheduled scaling to zero replicas through kube-downscaler, paired with node scale-down, removes an avoidable baseline.
GPU workloads on shared clusters: the cost profile that breaks standard optimization assumptions
GPU workloads need their own cost and isolation strategy. A lightly used inference endpoint with a dedicated GPU still wastes that GPU's capacity even when the CPU services around it have well-tuned requests. The remedy is often sharing, slicing, or better job admission. Otherwise, an expensive card remains largely idle.
NVIDIA MIG, or Multi-Instance GPU, lets several small AI services share one powerful card. Kueue manages quotas, admission, and preemption through native Kubernetes APIs, including borrowing across resource quotas for multi-tenant GPU sharing. It also supports gang scheduling through atomic workload admission, which lets in all pod sets together or none at all. Kueue 1.1+ adds pod-level gang coordination through JobSet for distributed training workloads that need coordinated starts.
Inference has a different set of supporting tools. NVIDIA GPU Operator manages the node-side GPU layer, while vLLM uses PagedAttention and continuous batching for throughput. These tools work on different parts of the workload, so request tuning alone cannot do their jobs.
Residual GPU memory from a completed job may be visible to a subsequent job if the runtime fails to clear it, so tenant separation must account for the physical hardware. Purchasing choices need similar workload-specific judgment. Spot suits fault-tolerant batch training, CI runners, and fine-tuning jobs that can checkpoint and resume, but not latency-sensitive inference endpoints serving user traffic.
Avoiding the managed-platform trap: what a PaaS layer should and should not own
All this management consumes real engineering time. Namespace quotas, request tuning, autoscaler configuration, GPU scheduling, and scheduled scale-down compete with product work, especially on small teams. Using a platform to handle routine operations can therefore be sensible. The team must weigh what it gives up in exchange.
A helpful platform deploys into the team’s own AWS, GCP, or Azure account. That preserves control of billing, the resource hierarchy, compliance responsibilities, and the underlying cloud economics. An opaque shared platform removes that visibility and control, leaving the team unable to attribute costs to its own namespaces or enforce its own security boundaries. Outsourcing operations should not require outsourcing ownership.
A good platform layer should handle cluster upgrades, CVE patching, autoscaler configuration, ingress setup, and GPU operator deployment. It should also provide SOC 2 and HIPAA compliance scaffolding without obscuring who owns compliance. At seed and early growth stages, building them internally slows product engineering, while dependence on opaque infrastructure can become an economics and compliance liability later.
The team should own the cloud account and outsource the complexity. That division preserves the controls needed to judge whether the platform is actually saving work and money.
Keeping the savings from eroding: the continuous management practices that prevent drift
A defined review cadence catches waste before it settles into the baseline. Weekly, review Kubecost or OpenCost namespace spending for unexpected increases and check new deployments for missing resource requests. Monthly, repeat P95/P99 rightsizing analysis across namespaces, inspect Karpenter node utilization and consolidation behavior, and audit LoadBalancer Services for shared-ingress candidates. These checks connect changes in the bill to changes in the cluster.
Quarterly reviews should revisit the assumptions behind isolation. A namespace may now host a workload that warrants a virtual cluster or dedicated cluster, even if its original services did not. Non-production scheduling windows also need to be checked as work hours and what teams need from their environments change. A schedule can become stale just like a resource request.
Automation reduces the work between these reviews. Admission webhooks or Kyverno policies can reject pods without resource requests, while VPA in Recommend mode keeps surfacing tuning opportunities. Karpenter consolidation should run continuously. Consistent labels across namespaces, deployments, and teams make cost attribution, rightsizing analysis, and scheduled scaling possible in the first place.
None of these practices has a permanent completion date. New services and changes in traffic change the system the team optimized last month. A shared cluster delivers its promised economics only when cost remains a living part of operations beyond the first smaller bill.


