~/ nmadiraju.com Amazon EKS · KEDA
arrow_back Back to nmadiraju
Visual Walkthrough · Kubernetes autoscaling

How KEDA Works on Amazon EKS

Follow orders-worker and its SQS queue through an evening rush and a quiet night, then check yourself with 8 questions.

1Visual Walkthrough

KEDA scaling Deployment orders-worker on EKS from the length of SQS queue orders-queue On the left, a checkout service, SQS queue orders-queue and IAM role keda-sqs-read. The EKS control plane holds Deployment orders-worker, a HorizontalPodAutoscaler, ScaledObject orders-worker and TriggerAuthentication orders-sqs-auth. In your VPC, namespace keda runs keda-operator, keda-operator-metrics-apiserver and keda-admission-webhooks, beside three nodes with orders-worker Pods and Karpenter. The walkthrough shows CPU missing a backlog, the webhook refusing a second autoscaler, KEDA's HPA, Pod Identity for the operator, scaling 300 messages to 6 replicas, scaling to zero and back, and graceful shutdown on scale-in. checkout service 1 SQS message per order Amazon SQS orders-queue IAM role keda-sqs-read sqs:GetQueueAttributes trusts EKS Pod Identity Pod Identity: keda-operator no IAM role for keda-operator yet EKS CONTROL PLANE · CLUSTER prod · NAMESPACE orders Deployment orders-worker image orders-worker:1.8 each Pod reads orders-queue HorizontalPodAutoscaler ScaledObject orders-worker aws-sqs-queue: orders-queue TriggerAuthentication orders-sqs-auth podIdentity:   provider: aws YOUR VPC · NODES NAMESPACE keda keda-operator pollingInterval: 30 s keda-operator-metrics-apiserver external.metrics.k8s.io keda-admission-webhooks checks ScaledObjects when applied node-1 · m6i.large node-2 · m6i.large node-3 · m6i.large NOT ON ANY NODE node-1 and node-2 are full orders-worker-k2p9x DELETED orders-worker-m4tq7 DELETED orders-worker-r8wz2 DELETED orders-worker-j6hn3 DELETED orders-worker-q2vd8 DELETED orders-worker-z7kc4 DELETED orders-worker-q2vd8 Pending orders-worker-z7kc4 Pending Karpenter launches a node for Pending Pods; its own walkthrough covers how

    2Quiz to check understanding

    Check yourself