TExcelTAD
Home › Kubernetes › Managed Kubernetes

Managed Kubernetes

Running the control plane yourself means operating etcd, upgrading every component, rotating certificates and keeping three machines highly available. Most teams let a cloud provider do it. In a managed Kubernetes service, the provider runs the control plane; you get an API endpoint and decide how the worker nodes are provided.

Amazon EKS Google GKE Azure AKS
Control plane fee Hourly per cluster Free tier for one zonal/Autopilot cluster, then hourly Free tier; paid tier with an SLA
Node options Managed node groups, self-managed, Fargate (serverless Pods), Auto Mode/Karpenter Standard node pools, Autopilot (Google manages nodes, you pay per Pod) Node pools, virtual nodes (ACI), Node Auto-Provisioning
Networking VPC CNI: Pods get VPC IPs VPC-native (alias IPs), Dataplane V2 (Cilium) Azure CNI (overlay or VNet IPs)
Load balancers AWS Load Balancer Controller (NLB/ALB) Cloud Load Balancing, GKE Gateway Azure Load Balancer / Application Gateway
Pod → cloud identity IRSA / EKS Pod Identity Workload Identity Federation Entra Workload ID
CLI to create eksctl create cluster gcloud container clusters create-auto az aks create

Other good options: DigitalOcean (DOKS), Linode (LKE), Scaleway, OVHcloud, and on-premises distributions such as OpenShift, Rancher (RKE2) and Talos.

Creating a cluster

bash
# EKS with eksctl
eksctl create cluster --name shop --region eu-west-1 --nodes 3 --node-type m7i.large

# GKE Autopilot
gcloud container clusters create-auto shop --region europe-west1

# AKS
az aks create --resource-group shop-rg --name shop --node-count 3 --generate-ssh-keys
az aks get-credentials --resource-group shop-rg --name shop     # writes your kubeconfig

In production, clusters are usually created with infrastructure as code (Terraform/OpenTofu, Pulumi, Crossplane) rather than by hand.

Shared responsibility

Provider manages You manage
API server, etcd, scheduler, controller manager Your workloads, manifests, RBAC, NetworkPolicies
Control plane HA, backups, patching Upgrading the cluster version (when you choose) and node pools
Integration with the cloud's LB, disks, IAM Node sizing, autoscaling, cost
(Autopilot/Fargate: also the nodes) Security of your images and configuration

Sizing and cost

Node choice is a bin-packing problem: large nodes waste less on per-node overhead (the kubelet, DaemonSets, the system reservation) but each failure takes more Pods down. This model compares node types for the same workload, using made-up prices:

python · try it yourself
import math

workload = {"cpu": 22000, "memory": 70 * 1024}           # total requests: millicores, MiB
overhead = {"cpu": 300, "memory": 1200}                   # per node: system reserve + DaemonSets
node_types = {
    "4 vCPU / 16 GiB": {"cpu": 4000, "memory": 16384, "price": 0.19},
    "8 vCPU / 32 GiB": {"cpu": 8000, "memory": 32768, "price": 0.38},
    "16 vCPU / 64 GiB": {"cpu": 16000, "memory": 65536, "price": 0.77},
}
for name, n in node_types.items():
    usable_cpu = n["cpu"] - overhead["cpu"]
    usable_mem = n["memory"] - overhead["memory"]
    count = max(math.ceil(workload["cpu"] / usable_cpu), math.ceil(workload["memory"] / usable_mem), 3)
    monthly = count * n["price"] * 730
    cpu_util = workload["cpu"] / (count * n["cpu"])
    print(f"{name:17} x{count:2}  ${monthly:8,.2f}/month  CPU allocated {cpu_util:.0%}  "
          f"lose 1 node = {1 / count:.0%} of capacity")
4 vCPU / 16 GiB   x 6  $  832.20/month  CPU allocated 92%  lose 1 node = 17% of capacity
8 vCPU / 32 GiB   x 3  $  832.20/month  CPU allocated 92%  lose 1 node = 33% of capacity
16 vCPU / 64 GiB  x 3  $1,686.30/month  CPU allocated 46%  lose 1 node = 33% of capacity

(The minimum of 3 nodes keeps one node per availability zone. That is why the 16-vCPU option ends up half empty at twice the price, while 6 small nodes cost the same as 3 medium ones but lose less capacity when one fails.)

Upgrades

Kubernetes releases a minor version about every four months, and each is supported for roughly 14 months upstream (providers offer standard support around that long, sometimes with paid extended support). Upgrades go one minor version at a time: control plane first, then node pools. The control plane may be newer than the kubelets, but kubelets must not be newer than the API server, and may lag by up to three minor versions:

python · try it yourself
def skew_ok(apiserver, kubelet):
    a, k = int(apiserver.split(".")[1]), int(kubelet.split(".")[1])
    if k > a:
        return "NOT allowed: kubelet newer than API server"
    if a - k > 3:
        return f"NOT allowed: kubelet {a - k} minors behind (max 3)"
    return "ok"

def upgrade_path(current, target):
    c, t = int(current.split(".")[1]), int(target.split(".")[1])
    return [f"1.{v}" for v in range(c + 1, t + 1)]

print("upgrade path 1.31 -> 1.34:", " -> ".join(upgrade_path("1.31", "1.34")))
for api, kubelet in [("1.34", "1.34"), ("1.34", "1.31"), ("1.34", "1.30"), ("1.33", "1.34")]:
    print(f"apiserver {api}, kubelet {kubelet}: {skew_ok(api, kubelet)}")
upgrade path 1.31 -> 1.34: 1.32 -> 1.33 -> 1.34
apiserver 1.34, kubelet 1.34: ok
apiserver 1.34, kubelet 1.31: ok
apiserver 1.34, kubelet 1.30: NOT allowed: kubelet 4 minors behind (max 3)
apiserver 1.33, kubelet 1.34: NOT allowed: kubelet newer than API server

Before each upgrade, check for removed APIs your manifests still use (e.g. with kubectl deprecations plugins, pluto or kubent), and make sure PodDisruptionBudgets let nodes drain.

yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: api
spec:
  minAvailable: 2          # never drain below 2 ready api Pods
  selector:
    matchLabels: {app: api}

Tip: Treat clusters as cattle too. If your setup lives in IaC and GitOps, creating a fresh cluster on the new version and moving traffic over ("blue/green clusters") can be safer than an in-place upgrade.

Test yourself

In managed Kubernetes, who operates etcd and the API server?

  1. You
  2. The cloud provider
  3. Nobody, they're optional
  4. The kubelet

How should you upgrade a cluster from 1.31 to 1.34?

  1. Directly to 1.34
  2. One minor version at a time: 1.32, 1.33, 1.34
  3. Upgrade nodes first, then the control plane
  4. Reinstall etcd

What does a PodDisruptionBudget protect against?

  1. Crashes inside containers
  2. Voluntary disruptions like node drains taking too many Pods down at once
  3. Network policies
  4. Image pull errors