TExcelTAD
Home › Azure & Google Cloud for AWS Users › Managed Kubernetes: AKS and GKE

Managed Kubernetes: AKS and GKE

Kubernetes is the same API everywhere, so your manifests, Helm charts and kubectl skills carry over completely. What changes is everything around the cluster: how you create it, how nodes are managed, how pods get IPs, how they get cloud identities, and which load balancer a Service or Gateway creates.

On AWS this is… Amazon EKS with managed node groups, Fargate profiles or Auto Mode, the VPC CNI, IRSA / Pod Identity and the AWS Load Balancer Controller, from Containers and Managed Kubernetes.

Side by side

EKS AKS GKE
Control plane fee per cluster per hour Free tier (no SLA) or Standard / Premium tier per cluster per cluster per hour (one zonal or Autopilot cluster's fee is covered by a monthly free-tier credit; check current terms)
"Nodes managed for me" mode EKS Auto Mode, Fargate AKS Automatic (--sku automatic) Autopilot (create-auto): you pay for pod requests, Google manages nodes
Node groups managed node groups node pools (a system pool + user pools; each is a VM scale set) node pools (each a MIG)
Node autoscaling Cluster Autoscaler, Karpenter cluster autoscaler, node auto-provisioning (Karpenter-based) cluster autoscaler, node auto-provisioning / ComputeClasses
Pod networking VPC CNI (pods get VPC IPs) Azure CNI Overlay (default choice), Azure CNI with pod subnet, Cilium dataplane VPC-native (alias IPs from subnet secondary ranges), Dataplane V2 (Cilium-based)
Pod identity IRSA, EKS Pod Identity Microsoft Entra Workload ID Workload Identity Federation for GKE
Human auth IAM → access entries Microsoft Entra ID integration + Azure RBAC for Kubernetes, kubelogin Google identities + IAM, gke-gcloud-auth-plugin
L7 ingress AWS Load Balancer Controller Application Gateway for Containers, application routing add-on, any Gateway API controller GKE Gateway controller (Gateway API → Cloud Load Balancing)
Upgrades you trigger per version auto-upgrade channels + planned maintenance windows release channels (Rapid, Regular, Stable, Extended) + maintenance windows
Managed Prometheus Amazon Managed Service for Prometheus Azure Monitor managed service for Prometheus + Managed Grafana Google Cloud Managed Service for Prometheus

Two remarks:

  • AKS creates a second resource group. Alongside your rg-shop-prod-app, AKS creates MC_rg-shop-prod-app_aks-shop-prod_westeurope (the "node resource group") holding the scale sets, load balancers and disks. Don't edit things in it by hand; the cluster owns them.
  • GKE Autopilot changes the billing unit. You pay for the CPU, memory and ephemeral storage your pods request, not for nodes. Bad requests now cost money directly, and DaemonSets and privileged pods are restricted.

Model: Standard vs Autopilot for one workload

The prices below are made up for illustration (only their proportions are realistic): a node per hour, and a pod-resource price per vCPU-hour and GiB-hour a little higher than raw VM cost, because Autopilot includes node management and wasted capacity. Check current prices before deciding.

python · try it yourself
import math

# ILLUSTRATIVE prices, NOT real list prices
NODE = {"vcpu": 4, "gib": 16, "per_hour": 0.20, "allocatable": 0.88}   # ~12% reserved for system
POD_VCPU_HOUR, POD_GIB_HOUR = 0.050, 0.0055

def standard_cost(pods, cpu, gib):
    per_node_by_cpu = math.floor(NODE["vcpu"] * NODE["allocatable"] / cpu)
    per_node_by_mem = math.floor(NODE["gib"] * NODE["allocatable"] / gib)
    per_node = min(per_node_by_cpu, per_node_by_mem)
    nodes = max(2, math.ceil(pods / per_node))          # keep at least 2 nodes for HA
    return nodes, nodes * NODE["per_hour"] * 730

def autopilot_cost(pods, cpu, gib):
    return pods * (cpu * POD_VCPU_HOUR + gib * POD_GIB_HOUR) * 730

print(f"{'workload':<40}{'standard':>16}{'autopilot':>12}")
for name, pods, cpu, gib in [
    ("3 small API pods (0.25 vCPU, 0.5 GiB)", 3, 0.25, 0.5),
    ("12 API pods (0.5 vCPU, 1 GiB)", 12, 0.5, 1.0),
    ("40 workers (1 vCPU, 2 GiB)", 40, 1.0, 2.0),
]:
    nodes, std = standard_cost(pods, cpu, gib)
    ap = autopilot_cost(pods, cpu, gib)
    print(f"{name:<40}{f'{nodes} nodes ${std:,.0f}':>16}{f'${ap:,.0f}':>12}")
workload                                        standard   autopilot
3 small API pods (0.25 vCPU, 0.5 GiB)       2 nodes $292         $33
12 API pods (0.5 vCPU, 1 GiB)               2 nodes $292        $267
40 workers (1 vCPU, 2 GiB)               14 nodes $2,044      $1,781

With these made-up numbers Autopilot wins small clusters easily (you don't pay for idle nodes) and the gap narrows as the workload fills nodes well. Real comparisons also count Spot pricing, committed-use discounts, and the time you no longer spend on node upgrades.

Creating clusters

Azure, sample session: Standard tier, three zones, Overlay networking, Workload ID, attached ACR.

bash
az aks create -g rg-shop-prod-app -n aks-shop-prod -l westeurope \
    --tier standard --zones 1 2 3 --node-count 3 --node-vm-size Standard_D4s_v5 \
    --network-plugin azure --network-plugin-mode overlay \
    --vnet-subnet-id "$SNET_AKS_ID" \
    --enable-oidc-issuer --enable-workload-identity \
    --enable-aad --enable-azure-rbac \
    --auto-upgrade-channel stable \
    --attach-acr acrshopprod --generate-ssh-keys
az aks get-credentials -g rg-shop-prod-app -n aks-shop-prod
kubectl get nodes -o wide

Google Cloud, sample session: an Autopilot cluster, and a Standard cluster for comparison.

bash
gcloud container clusters create-auto shop-prod --location=europe-west1 \
    --network=shop-vpc --subnetwork=gke-ew1 --release-channel=regular

gcloud container clusters create shop-std --location=europe-west1 \
    --network=shop-vpc --subnetwork=gke-ew1 --enable-ip-alias \
    --num-nodes=1 --machine-type=e2-standard-4 \
    --workload-pool=shop-prod-4821.svc.id.goog --release-channel=regular \
    --enable-autoscaling --min-nodes=1 --max-nodes=5

gcloud container clusters get-credentials shop-prod --location=europe-west1

--num-nodes=1 on a regional Standard cluster means one node per zone, so three nodes in total; a common surprise on the first bill.

What stays the same

Your Deployments, Services, HPAs, NetworkPolicies, Helm charts and GitOps setup (Kubernetes) don't change. Things to swap when moving a workload between EKS, AKS and GKE:

In manifests EKS AKS GKE
ServiceAccount annotation / binding for cloud identity eks.amazonaws.com/role-arn (IRSA) or Pod Identity association azure.workload.identity/client-id + pod label azure.workload.identity/use: "true" none needed (bind IAM to the principal://…/ns/NS/sa/SA identifier)
Default StorageClass none marked default on new clusters (create a gp3 class for the EBS CSI driver) default (Azure Disk CSI; managed-csi-premium for Premium SSD) standard-rwo (Persistent Disk balanced)
Internal load balancer Service annotation service.beta.kubernetes.io/aws-load-balancer-scheme: internal service.beta.kubernetes.io/azure-load-balancer-internal: "true" networking.gke.io/load-balancer-type: "Internal"
GatewayClass depends on controller depends on controller (e.g. Application Gateway for Containers) gke-l7-global-external-managed, gke-l7-rilb, …

Test yourself

What do you pay for in a GKE Autopilot cluster, besides the cluster fee?

  1. Nodes per hour
  2. The CPU, memory and ephemeral storage your pods request
  3. Only network egress
  4. Nothing

What is the MC_… resource group that appears when you create an AKS cluster?

  1. A backup
  2. The node resource group holding the cluster's VMs, load balancers and disks, managed by AKS
  3. A management group
  4. The monitoring workspace

A regional GKE Standard cluster is created with --num-nodes=1. How many nodes does it start with in a three-zone region?

  1. 1
  2. 2
  3. 3
  4. 0