Kubernetes vs Amazon ECS vs Serverless: Which Fits Your Team?

Kubernetes, Amazon ECS and serverless platforms such as Cloud Run, AWS Lambda and Azure Container Apps can all run containerized apps. How they compare on operational load, team size, cost control, lock-in and workload fit.

By Gepton Team · Sep 29, 2026 · Updated Nov 13, 2026 · 8 min read

On this page (11 sections)
  1. The three models
  2. Kubernetes
  3. Amazon ECS
  4. Serverless
  5. Side-by-side comparison
  6. Team size and skills
  7. Workload fit
  8. Cost control concepts
  9. Lock-in
  10. Security and compliance
  11. Moving between models
  12. Mixing models
  13. When to choose which
  14. How Gepton helps

In short: choose serverless (Cloud Run, Azure Container Apps or AWS Lambda) when your workloads are stateless, request- or event-driven and your team is small; you trade control for the least operational work. Choose Amazon ECS when you are committed to AWS and want long-running containers with less complexity than Kubernetes. Choose Kubernetes (EKS, AKS, GKE or self-managed) when you need portability across clouds or on-premises, many services and teams, stateful or GPU workloads, or the ecosystem of Kubernetes-native tools, and you can staff the platform. Most organizations end up using more than one.

The three models

Kubernetes

Kubernetes is an open-source orchestrator that schedules containers across a pool of nodes and exposes a consistent API for deployments, networking, storage, scaling and policy. Managed services (Amazon EKS, Azure AKS, Google GKE) run the control plane, but you still design networking, choose node types, upgrade versions every year, and install and maintain add-ons such as ingress, certificates, observability, policy and GitOps tooling. The CNCF 2025 Annual Cloud Native Survey found 82% of container users run Kubernetes in production, which reflects its reach, but not that every team needs it.

Amazon ECS

ECS is AWS's own container orchestrator. You define tasks and services, and ECS places them on AWS Fargate (serverless compute, no nodes to manage), on EC2 instances you manage, or on ECS Managed Instances, launched in September 2025, where AWS manages EC2 capacity for you. ECS has no version upgrades to plan and integrates directly with IAM, load balancers, CloudWatch and other AWS services. In November 2025 AWS added ECS Express Mode, which creates a service with load balancing, scaling and a domain from a container image in one step. AWS has also closed App Runner to new customers from April 30, 2026 and points new users to ECS Express Mode, which makes ECS the main AWS option for simple container web apps.

Serverless

Serverless platforms run your code or container only when needed and scale automatically, often to zero. They come in two shapes:

  • Functions, such as AWS Lambda: you deploy a function triggered by events (HTTP, queues, storage, schedules). Lambda runs each invocation for up to 15 minutes. Late 2025 additions include Lambda Managed Instances for steady, high-volume workloads on dedicated EC2 capacity and durable functions for multi-step workflows that can run up to a year with checkpoints.
  • Serverless containers, such as Google Cloud Run and Azure Container Apps: you deploy any container that listens for requests or runs as a job. Cloud Run supports request timeouts up to 60 minutes, jobs up to seven days and NVIDIA GPUs. Azure Container Apps is built on Kubernetes with KEDA event-driven scaling and Dapr built in, and offers serverless GPUs.

Serverless is widely used alongside containers. Datadog's 2025 State of Containers and Serverless report found that 65% of its AWS customers use Lambda, 70% of its Google Cloud customers use Cloud Run, and 66% of serverless function users also run containers.

Side-by-side comparison

FactorKubernetes (managed)Amazon ECSServerless (Cloud Run, Container Apps, Lambda)
Operational loadHighest: upgrades, add-ons, node management, security policiesMedium on EC2, low on Fargate or Managed InstancesLowest: no nodes or cluster versions
Typical team fitA platform team or dedicated engineers, many servicesSmall to mid-sized AWS teamsSmall teams, product-focused engineers
Workload fitAlmost anything: long-running, stateful, batch, GPU, custom networkingLong-running services, workers, batch on AWSStateless HTTP and event-driven work, spiky traffic, jobs
ScalingHPA, KEDA, Karpenter or cloud autoscalers; you tune themService auto scaling and capacity providersAutomatic per request or event, often to zero
PortabilityHigh: same API on any cloud or on-premisesAWS only (containers themselves stay portable)Cloud Run and Container Apps run standard containers; Lambda code is most tied to AWS
EcosystemLargest: GitOps, service mesh, operators, policy enginesAWS services and partner toolsProvider services and event sources
LimitsFew, set by your cluster designAWS service quotasExecution time, memory, concurrency and cold starts vary by platform

Team size and skills

Operational load is the most important difference, and it scales with the number of people who must understand the platform. A Kubernetes cluster that nobody on the team fully understands is a risk: upgrades slip, add-ons fall out of date and incidents take longer. As a rough guide, a product team of a few engineers without dedicated operations staff is usually best served by serverless containers or ECS on Fargate. Once you have many services, several teams and at least a couple of engineers who own the platform, Kubernetes starts to pay back its complexity through standardization, self-service and tooling. The more automated Kubernetes modes (GKE Autopilot, EKS Auto Mode, AKS Automatic) lower that threshold but do not remove upgrades, add-ons or Kubernetes knowledge.

Workload fit

  • Stateless APIs and websites with variable traffic: serverless containers are a strong default. Scale-to-zero suits internal tools and low-traffic services.
  • Event processing (files arriving, queue messages, webhooks): Lambda, Cloud Run functions or Container Apps jobs fit naturally. Watch execution limits and idempotency.
  • Long-running services and background workers: ECS or Kubernetes. Serverless can do it, but constant load removes much of the scaling benefit.
  • Stateful systems (databases, queues, search): prefer managed cloud services. If they must run in containers, Kubernetes with operators is the most capable option.
  • GPU and AI workloads: Cloud Run and Container Apps offer serverless GPUs for inference with modest needs. Training, large-model serving and GPU sharing usually need Kubernetes.
  • Multi-cloud, on-premises or edge: Kubernetes is the only one of the three that runs the same way everywhere.

Cost control concepts

This comparison does not quote prices, which change often and depend on usage. The structure of the cost is what matters when choosing:

  • Pay-per-use versus provisioned capacity. Serverless charges for requests and the time your code runs, so idle services cost little. Kubernetes and ECS on EC2 charge for nodes whether they are busy or not, so cost depends on how fully you use them.
  • Utilization. Idle capacity is the largest waste in container platforms. Datadog's 2025 report found most container workloads use less than 25% of the CPU they request and less than half of their allocated memory. Right-sizing requests and bin-packing with tools such as Karpenter narrow that gap.
  • The crossover point. For steady, high-volume traffic, provisioned capacity with commitments or Spot instances usually costs less than per-request pricing. For spiky or low traffic, serverless usually wins. Many teams move a service between models as its traffic changes.
  • Hidden costs. Load balancers, NAT gateways, data transfer, logging volume and observability tools often rival compute. They apply to all three models.
  • People. Engineering time spent running a platform is a real cost. A lower compute bill does not help if two engineers spend half their time on cluster upkeep.

Gepton's cloud cost and FinOps work measures these factors before recommending a move in either direction.

Lock-in

Lock-in is a spectrum. Container images are portable across all three models, so the code inside them is not the issue. Coupling comes from the surroundings: ECS task definitions, IAM roles and CloudWatch alarms are AWS-specific; Lambda functions are shaped around AWS event formats and runtimes; Cloud Run and Container Apps services are close to standard containers but depend on their provider's identity, networking and event services. Kubernetes manifests move between clouds with the fewest changes, although storage, load balancers and identity still differ. Weigh the cost of lock-in against the cost of avoiding it; building for portability you never use has a price in complexity.

Security and compliance

The shared-responsibility line moves with each model. On serverless platforms, the provider patches the operating system and runtime hosts, so your work centers on application code, dependencies, identity permissions and secrets. On ECS with Fargate, AWS patches the underlying hosts and you own images, task roles and network rules; on ECS with EC2 you also patch instances. On Kubernetes, you own far more: cluster version upgrades, node images, network policies, admission policies, RBAC, secrets handling and the security of every add-on you install. That extra surface is also extra control, which is why regulated teams with strong platform skills often prefer Kubernetes, where policy engines such as Kyverno or OPA Gatekeeper can enforce rules across every workload.

Whatever the model, the same basics apply: minimal container images, image scanning and signing in the pipeline, least-privilege workload identities instead of static keys, and central audit logging. Pipeline and supply-chain controls are covered in DevSecOps.

Moving between models

Choices are not permanent. A common path is to start on serverless containers or ECS, then move core services to Kubernetes once there are enough services and people to justify a platform. The reverse also happens: teams move small internal services off an underused cluster to serverless to cut upkeep. Moves are easiest when every service is already a container built by CI, configuration lives in environment variables and secrets managers rather than on disks, and infrastructure is defined in Terraform, OpenTofu or Pulumi. Services built around a specific event format, such as Lambda triggers, need the most rework, so isolate that handling in a thin adapter layer if you expect to move.

Mixing models

A common and sensible pattern is a Kubernetes or ECS core for long-running services, with serverless functions for glue, scheduled tasks and event handling, and serverless containers for internal tools and low-traffic services. Keep the pieces consistent through shared container build pipelines, one observability stack based on OpenTelemetry and infrastructure as code for all of it.

When to choose which

  • Serverless: small team, stateless or event-driven workloads, uneven traffic, and a priority on shipping product over running infrastructure.
  • Amazon ECS: AWS-only estate, long-running containers, and a wish to avoid Kubernetes upgrades and add-on management; Fargate or Managed Instances further reduce node work.
  • Kubernetes: many services and teams, a platform team, portability or on-premises needs, stateful or GPU workloads, or reliance on Kubernetes-native tools such as GitOps controllers and operators.

Revisit the choice as you grow. Starting on serverless or ECS and moving to Kubernetes later is common and manageable if your services are containerized and deployed through code from the start.

How Gepton helps

Gepton's Docker and containerization service prepares applications to run well on any of these platforms, with clean images and deployment pipelines. When Kubernetes is the right fit, Kubernetes consulting and management covers cluster design and operations; when it is not, Gepton will say so and set up ECS or serverless instead.

Frequently asked questions

Is Kubernetes overkill for a small team?

Often, yes. A few engineers running a handful of stateless services usually ship faster on serverless containers or ECS with Fargate, because there are no cluster upgrades or add-ons to maintain. Kubernetes becomes worthwhile when you have many services and teams, need portability or on-premises hosting, run stateful or GPU workloads, or rely on Kubernetes-native tools, and have people to own the platform.

What is the difference between ECS and EKS?

Both run containers on AWS. ECS is AWS's own orchestrator with a simpler model, no Kubernetes version upgrades and deep AWS integration. EKS is managed Kubernetes, which gives you the standard Kubernetes API, portability and ecosystem, but requires yearly upgrades and add-on management. Choose ECS for simplicity on AWS, and EKS when you need Kubernetes features or portability.

What should AWS App Runner users do now?

AWS stopped accepting new App Runner customers from April 30, 2026. Existing services keep running, but AWS does not plan new features and recommends Amazon ECS Express Mode for new applications. Existing users should plan a move at a convenient time, usually to ECS Express Mode or ECS with Fargate, rather than waiting for a forced deadline.

When is serverless more expensive than containers?

For steady, high-volume workloads that run close to capacity all day, provisioned capacity on ECS or Kubernetes, especially with commitments or Spot instances, usually costs less than per-request pricing. Serverless usually costs less for spiky, low or unpredictable traffic where idle servers would sit unused. Measure your traffic pattern before deciding.

Can we run AI inference on serverless platforms?

Yes, for moderate needs. Cloud Run supports NVIDIA GPUs for services and jobs, and Azure Container Apps offers serverless GPUs. They suit smaller models and bursty inference. Large models, GPU sharing, multi-GPU serving and training usually need Kubernetes or dedicated GPU instances for control over scheduling and capacity.

Can we move from ECS or serverless to Kubernetes later?

Yes. If your services are already containerized and deployed through infrastructure as code and CI/CD, the move is mostly about building the Kubernetes platform and translating task definitions or service configurations into Kubernetes manifests or Helm charts. Code tied to Lambda event formats needs more rework. Moving in waves, one service at a time, keeps risk low.

Written by

Engineers and project leads

Engineers and project leads at Gepton, Gurugram. We write from client projects.

All articles

Jump to

↑↓ to move↵ to open