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: 60Was 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.
Related tools
See all Kubernetes tools →Kubernetes Resource Request/Limit Calculator
Average and peak memory/CPU usage to a resources.requests/limits YAML snippet.
Kubernetes Probe Generator
Liveness, readiness, or startup - HTTP, TCP, or exec - a valid probe YAML block with correct successThreshold rules.
Kubernetes ConfigMap / Secret Generator
Key-value pairs to a valid ConfigMap or Secret manifest, Secret values base64-encoded correctly.
Kubernetes Ingress Generator
Host, path, backend service, and optional TLS - a valid networking.k8s.io/v1 Ingress manifest.
Kubernetes PodDisruptionBudget Calculator
Replica count and minAvailable/maxUnavailable to exactly how many pods can be evicted at once, plus a valid PDB manifest.
Runs entirely in your browser. Nothing is stored. Free forever.
