ArchSetu
ArchSetu
ArchSetuToolsKubernetesKubernetes HPA Calculator
Free tool

Kubernetes HPA Calculator

Current replicas and utilization, target utilization, and min/max bounds - runs the real HorizontalPodAutoscaler algorithm and outputs a valid autoscaling/v2 manifest.

Raw desired

6

Clamped to bounds

6

Bound hit

None

desiredReplicas = ceil(currentReplicas × currentUtilization ÷ targetUtilization), then clamped to [min, max] - the exact HPA controller algorithm.

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: my-app
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: my-app
  minReplicas: 2
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 60

Was this tool helpful?

See this same kind of analysis applied to your whole repository

Call graphs, dead code, blast radius, and a health score. Results in 60 seconds, free.

Analyze a repository

Runs entirely in your browser. Nothing is stored. Free forever.

Powered by ArchSetu