Horizontal Pod Autoscaler is an API resource in the Kubernetes and used to horizontally scale number of kubernetes pods based on metrics values
Questions tagged [hpa]
223 questions
4
votes
1 answer
Enforced scaled to zero with Keda
With plain HPAs it is possible to scale the underlying deployment manually to zero. This is required for eg. maintainance tasks. When scaling back to a value greater zero, the scaling continues as before.
This is the command executed: kubectl scale…

Dag
- 10,079
- 8
- 51
- 74
4
votes
1 answer
Kubernates autoscale memory
I have a java application running on K8s with min:2 and max:6 pods in a deployment.
heap min:256Mb, heap max: 512Mb. request and limit memory is 1Gi
Here is the hpa spec:
spec:
scaleTargetRef:
apiVersion: extensions/v1beta1
kind:…

user2501711
- 461
- 7
- 16
4
votes
3 answers
Kubernetes HPA disable scale down
By our product's design we would like to disable the scale down in HPA, can it be disabled?

eazary
- 131
- 3
- 12
4
votes
2 answers
How to get list of metrics available for HPA?
I have GCP cluster which contains GKE application:
I want to scale application using HPA
Based on supporting for metrics
HPA able to read metrics from
metrics.k8s.io (resource metrics)
custom.metrics.k8s.io(custom…

gstackoverflow
- 36,709
- 117
- 359
- 710
3
votes
1 answer
Kubernets update minReplicas and maxReplica
I am a newbie on Ops and need to update through Lens the HPA configuration like:
From:
minReplicas: 6
maxReplicas: 10
To:
minReplicas: 4
maxReplicas: 16
My doubt is if the PODs will be recreated or not once we have 8 instances running.

Luciano Borges
- 817
- 3
- 12
- 31
3
votes
1 answer
How to view HPA autoscaling definition in GKE console
Using GKE version - 1.18.17-gke.700
I am looking to find an option inside GKE console, where I can find the information of Pods HPA autoscalling information?
We are able to get the HPA info using "kubectl get hpa -n <> " but trying to know how one…

Surendar
- 45
- 1
- 6
3
votes
0 answers
HorizontalPodAutoscaler scaleDown behavior
We are using v1.18 and ArgoCD.
Desired Behavior: scale down by 1 pod at a time every 5 minutes when usage under 50%
The HPA scales up and down perfectly using default spec.
When we add the custom behavior to spec to achieve Desired Behavior, we do…

DJ Rodriguez
- 31
- 1
- 3
3
votes
2 answers
Is it possible to use Kubernetes autoscale on cron job pods
Some context: I have multiple cron jobs running daily, weekly, hourly and some of which require significant processing power.
I would like to add requests and limitations to these container cron pods to try and enable vertical scaling and ensure…

Max
- 31
- 1
- 4
3
votes
1 answer
HorizontalPodAutoscaler Kubernetes does not keep the minimum number of replicas
Good afternoon. I am working with HPA (HorizontalPodAutoscaler) for the automatic scaling of replicas of a pods, in this case I am using memory usage as a reference, I declare it as follows:
apiVersion: autoscaling/v2beta2
kind:…

Cesar Justo
- 707
- 2
- 11
- 35
3
votes
2 answers
Kubernetes HPA - Scale up cooldown
I am running a Kubernetes cluster v1.16(currently newest version on GKE) with HPA that scales the deployments base on custom metrics(Specifically rabbitmq messages count fetched from google cloud monitoring).
The Problem
The deployments scale up…

Montoya
- 2,819
- 3
- 37
- 65
3
votes
1 answer
Kubernetes HPA doesn't scale down after decreasing the loads
the Kubernetes HPA works correctly when load of the pod increased but after the load decreased, the scale of deployment doesn't change. This is my HPA file:
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name:…

Amir Soleimani Borujerdi
- 434
- 1
- 6
- 14
3
votes
1 answer
Kubernetes AWS Cloudwatch adapter not fetching custom metric value for EKS HPA autoscaling
I'm trying to enable AWS EKS autoscaling based on a custom Cloudwatch metric via the Kubernetes Cloudwatch adapter. I have pushed custom metrics to AWS Cloudwatch, and validated they appear in Cloudwatch console as well as are retrievable using the…

rlindeborg
- 33
- 3
3
votes
2 answers
Can anyone explain this Kubernetes HPA behavior?
So this is happening on EKS K8s v1.15. You can see the api version in the describe output. The millicpu hovers between 80 and 120... which does not at ALL match the replica counts coming out of the HPA....
Here is the YAML:
apiVersion:…

Scott
- 1,012
- 7
- 14
3
votes
1 answer
Is it ok to use Kubernetes autoscaling v2beta2 in production as apiVersion?
I have use case to scale pods (HPA) based on memory (and custom metrics).
However respective apiVersion is in beta (autoscaling/v2beta2).
Not sure when this will be in GA/stable version, hence checking.
Any advise for me?

Prakash Srinivasan
- 31
- 3
2
votes
0 answers
How can I control scale down of pods based on AZ zones in kubernetes HPA (Horizontal Pod Autoscaler)?
I am trying to load balance EKS cluster pods according to Availability Zones.
I have configured "topologySpreadConstraints" in deployment for pod scale-up which works fine
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey:…

Nitesh Nayak
- 21
- 1