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

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

Steps

  1. Deploy the KEDA external scaler gRPC server as a Kubernetes Service, implementing the IsActive, GetMetricSpec, and GetMetrics methods against the target queue or metrics API
  2. Define a ScaledObject manifest referencing the Deployment as the scaleTargetRef and specifying the external trigger with the address of the scaler Service and any required metadata parameters
  3. Set cooldownPeriod and pollingInterval in the ScaledObject spec to control how quickly KEDA scales down after queue drains and how frequently it polls the scaler
  4. Configure minReplicaCount and maxReplicaCount bounds, and if the workload should scale to zero set minReplicaCount: 0 and ensure the external scaler's IsActive method correctly signals no active work
  5. Observe the HPA object created by KEDA and verify that replica counts respond to changes in the external metric by watching scaling events

Known gotchas

Related routes

Create a KEDA ScaledObject to autoscale a GPU inference Deployment based on a custom metrics trigger
keda.sh · 5 steps · unrated
Configure KEDA ScaledJob to scale CI build runners as Kubernetes Jobs based on a queue length from an SQS-like message queue
keda.sh · 6 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