Skip to content

Fargate

Deploy cluster

eksctl create cluster --with-oidc -f cluster.yaml

Fargate vs EC2

  • EC2

  • Control Plane runs on EKS

  • Worker Nodes runs on EC2, user need to manage Nodes
  • Pods can be exposed using Services (Load Balancer) And Ingress
  • Daemonsets are supported and used heavily
  • Able to run stateful apps (using EFS)
  • Wide range of workload dependant EC2 selection e.g GPU)
  • Can work in public and private subnet

  • Fargate

  • Control Plane runs on EKS

  • No Worker Nodes required. Much less management overhead
  • Classic and NLBs not supported. Pods can be exposed using Ingress
  • Daemonsets are not supported. Need to run as Sidecar (no standart logging solution)
  • Stateful apps not recommended
  • Can’t select workload specific underlying hardware, no GPU. Max Pod size 4 vCPU and 30 Gb memory per pod
  • Only works in private subnet

EC2 mix with Fargate

Its possible, and its setup via namespaces