Kubernetes
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: 60This is one question. ArchSetu answers it for a whole repository.
Call graph, dead code, blast radius and a health score, in about a minute.
Related tools
All Kubernetes tools →Kubernetes Resource Request/Limit CalculatorAverage and peak memory/CPU usage to a resources.requests/limits YAML snippet.Kubernetes Probe GeneratorLiveness, readiness, or startup - HTTP, TCP, or exec - a valid probe YAML block with correct successThreshold rules.Kubernetes ConfigMap / Secret GeneratorKey-value pairs to a valid ConfigMap or Secret manifest, Secret values base64-encoded correctly.Kubernetes Ingress GeneratorHost, path, backend service, and optional TLS - a valid networking.k8s.io/v1 Ingress manifest.Kubernetes PodDisruptionBudget CalculatorReplica count and minAvailable/maxUnavailable to exactly how many pods can be evicted at once, plus a valid PDB manifest.
Was this tool helpful?