Kubernetes · Arazzo Workflow
Kubernetes Attach a HorizontalPodAutoscaler to a Deployment
Version 1.0.0
Confirm a deployment exists, create an HPA targeting it, and list the namespace's autoscalers.
View Spec
View on GitHub
AutomationCloud NativeCNCFContainersDeploymentOpen SourceOrchestrationScalingArazzoWorkflows
Provider
Workflows
autoscale-deployment
Create a HorizontalPodAutoscaler bound to an existing deployment.
Reads the deployment to validate the scale target, creates an HPA referencing it by kind and name with min/max replica bounds, and lists the namespace's autoscalers to confirm the new HPA is registered.
1
resolveScaleTarget
getNamespacedDeployment
Read the deployment the HPA will target. An HPA pointing at a non-existent target is created successfully but never scales anything.
2
createAutoscaler
createNamespacedHorizontalPodAutoscaler
Create the HorizontalPodAutoscaler bound to the deployment by scaleTargetRef, with the supplied replica floor and ceiling.
3
verifyAutoscaler
listNamespacedHorizontalPodAutoscalers
List the namespace's autoscalers to confirm the HPA is registered and to report the replica counts the controller has computed so far.