CloudVectra Logo CloudVectra
CloudVectra Knowledge Hub

Azure Kubernetes and Container Architecture: Where Infrastructure Spending Goes Wrong

Model AKS tiers, system and user pools, requests, autoscaling, disks and networking, and compare Container Apps and App Service.

5 min read

1. The scenario: every team gets a cluster and a node pool

A company deploys several modest applications on AKS. Each team receives a separate cluster with a system pool and several dedicated user pools. Requests are copied from an early benchmark and never revised. Autoscaling is enabled, but most nodes remain because pool minimums and placement rules prevent consolidation.

Kubernetes provides useful APIs and workload controls. It needs deliberate packing, failure capacity and platform operations to achieve good economics. Enabling an autoscaler does not by itself reduce a node bill.

Prices below are illustrative USD assumptions using a 730-hour month, excluding taxes and discounts. They are not Azure regional quotes.

2. How it works: three scaling loops solve different problems

The scheduler places workloads using requests and available resources. HPA adjusts replicas from configured signals. The cluster autoscaler responds to unschedulable pods and removes eligible underused nodes within its bounds. It does not infer the ideal workload request from low CPU usage.

AKS has system and user node-pool roles, with requirements for system workloads. Specialized pools can isolate Windows, GPU or other requirements, but each pool’s minimum can create a cost floor.

AKS autoscaler guidance explains the interaction and scale-down constraints. Requests, memory, disruption budgets, placement rules and local state influence whether pods can safely move.

Azure containers architecture showing resource dependencies and the costs to evaluate.

3. Cost components: Free does not mean free infrastructure

LayerWhat to include
Cluster managementFree, Standard or Premium tier; selected support features
Worker capacitySystem/user VMs, OS licensing and purchase model
PersistenceManaged disks, Azure Files, provisioned performance and snapshots
NetworkLoad balancer rules/processing, addresses, egress and Private Link
Platform agentsMonitoring, security, ingress and per-node DaemonSets
OperationsRegistry, builds, logs, upgrades and deployment surge

AKS Free offers free cluster management without a financially backed uptime SLA; consumed resources still bill. Standard adds the production uptime SLA, while Premium includes the applicable LTS support model. See AKS tiers and pricing. A managed API-server SLA is not an application availability guarantee.

4. Where things go wrong

Requests much higher than measured need can prevent packing. Requests too low can cause contention; insufficient memory can cause OOM failures. CPU limits can throttle latency-sensitive work. Test changes against peaks and tail latency, not only monthly averages.

High minimum node counts, strict anti-affinity and narrow node shapes can block scale-down. HPA may remove pods while nodes stay because other pods cannot move. Disruption budgets control voluntary eviction and do not reserve capacity for a failed zone.

A system pool is not a free pool. Every system agent and per-node DaemonSet consumes part of the VM’s capacity. Dedicated small pools for each service can repeat that overhead and strand memory or CPU.

AKS networking can add load balancer, NAT, firewall, public IP and endpoint costs depending on the design. A Service of type LoadBalancer does not necessarily mean a separate Azure Load Balancer instance: AKS can configure multiple rules on managed load balancers. Inspect the actual resources and rules.

Persistent disks can remain after workloads disappear, particularly with a retain policy. A zone-bound disk also constrains placement and recovery. Test the storage class and supported redundancy rather than assuming a pod can restart anywhere.

5. Real-world example: account for the system baseline

Assume one cluster has three required system nodes at $0.15/hour and six application nodes at $0.20/hour. A tested candidate retains that system baseline and consolidates applications to three nodes.

Monthly componentOriginalCandidate
System nodes3 × 730 × $0.15 = $328.50$328.50
Application nodes6 × 730 × $0.20 = $8763 × 730 × $0.20 = $438
Selected cluster managementAssumed $75$75
Disks, network and telemetryAssumed $180$180
Total$1,459.50$1,021.50

The modeled difference is $438/month if nodes are actually removed. Three system nodes here are an explicit scenario baseline, not a statement that every AKS configuration universally requires that count.

Suppose twenty replicas each request 0.8 vCPU, or 16 vCPUs total. At 6 usable vCPUs per application node, the CPU-only lower bound is ceiling(16 ÷ 6) = 3 nodes. After testing a 0.4-vCPU request, aggregate requests become 8 and that bound becomes 2. Memory, failure headroom, pod/IP limits and placement can still require three or more. Do not equate theoretical packing with approved production size.

6. Alternatives and their tradeoffs

Container Apps can fit HTTP or event-driven containers without exposing cluster administration. Consumption resource-seconds, requests, minimum replicas, networking features and Dedicated profile capacity affect its billing. Scale-to-zero applies only when the selected configuration and application allow it.

App Service can fit web applications that do not need Kubernetes primitives. Several apps can share a plan, trading a smaller platform floor for shared capacity and related scaling behavior.

Keep AKS when Kubernetes scheduling, platform extensions, portability requirements or established operations justify it. Consolidate clusters only when trust, upgrade and failure boundaries remain acceptable. Spot pools can serve interruptible work with safe retries; they are not guaranteed recovery capacity.

7. Practical recommendations

Record allocatable CPU/memory, pod limits, IP capacity, system overhead and per-pool minimums. Inspect actual scale-down blockers before blaming the autoscaler.

Use representative rightsizing recommendations, test controlled changes and revisit utilization-based HPA targets after request changes. Budget rollout surge, upgrade capacity and zone-loss headroom explicitly.

Review idle pools, retained volumes, load balancer rules and monitoring volume. Compare complete cost per successful workload unit with latency and reliability.

8. CloudVectra perspective: explain the shared cluster floor

CloudVectra cost insights supports reviewing AKS with its VM, disk and network dependencies. Cost Centers provides a framework for shared-platform ownership.

Allocate the system baseline transparently and use scheduler telemetry as an input to workload allocation. Financial reporting shows whether a change removed charges; Kubernetes and Azure diagnostics establish whether the new capacity remains adequate.

Continue the architecture series

Sources and further reading

Choose whether CloudVectra may load optional analytics. You can change this at any time.

Cookie names, providers, and retention