Configure KEDA ScaledJob to scale CI build runners as Kubernetes Jobs based on a queue length from an SQS-like message queue

domain: keda.sh · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install KEDA: helm repo add kedacore https://kedacore.github.io/charts && helm install keda kedacore/keda --namespace keda --create-namespace
  2. Create a TriggerAuthentication resource referencing the SQS credentials via a Kubernetes Secret: spec.secretTargetRef[].parameter: awsAccessKeyID (or use a pod identity approach with IRSA)
  3. Define a ScaledJob (not ScaledObject) targeting a Job template: spec.jobTargetRef.template defines the runner pod spec; spec.triggers[].type: aws-sqs-queue with metadata.queueURL and queueLength threshold
  4. Set spec.maxReplicaCount to cap the number of concurrent runner Jobs and spec.successfulJobsHistoryLimit / spec.failedJobsHistoryLimit to control Job cleanup
  5. Set spec.pollingInterval: 30 and spec.triggers[].metadata.scaleOnInFlight: "false" if you want KEDA to scale only based on unprocessed messages rather than including in-flight messages in the count
  6. Verify scaling by publishing test messages to the queue and watching: kubectl get jobs -n runners -w to see Jobs created and completed

Known gotchas

Related routes

Configure KEDA ScaledObject with a custom external scaler and cooldown period to autoscale a Kubernetes Deployment based on queue depth from an external metrics API
keda.sh · 5 steps · unrated
Create a KEDA ScaledObject to autoscale a GPU inference Deployment based on a custom metrics trigger
keda.sh · 5 steps · unrated
Configure GPU node autoscaling on Kubernetes with KEDA and DCGM GPU utilization metrics
keda.sh · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans