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
2
votes
1 answer
How to autoscale Kubernetes Pods based on average memory usage in EKS?
I am running an EKS cluster and I have a HorizontalPodAutoscaler created for autoscaling number of pods based on average CPU utilisation.
How to do the same for Average memory utilization?
Suppose all of the pods running in an EKS clusters, have…

Yash Gurav
- 23
- 3
2
votes
1 answer
Horizontal Pods Autoscaling (HPA) on GKE based on GPU utilization
I am trying to achieve Horizontal Pods Autoscaling (HPA) in GCP based on GPU utilization.
My hpa.yaml file looks like this:
kind: HorizontalPodAutoscaler
metadata:
name: my-hpa
spec:
minReplicas: 1
maxReplicas: 10
metrics:
- type:…

Suraj Acharya
- 57
- 7
1
vote
1 answer
How HPA works in EKS cluster
we are using EKS cluster and Helm chart for deployment. Helm charts contains the template YANL files for CPU and Memory.
here is the YANL file
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: hpa-{{ .Release.Name }}-memory
…

user2315104
- 2,378
- 7
- 35
- 54
1
vote
0 answers
prometheus-adapter doesn't provide custom metric
I'm struggling with configurartion HPA using Prometheus.
My goal is to scale pod up and down with target cpu container utilization > 70 in 5 minus period.
Regular HPA configuration doesn't provide my opportunity to do this, bacause I'm on EKS.
I've…

Роман Дайнеко
- 11
- 2
1
vote
1 answer
Kubernetes HorizontalPodAutoscaler Scale in multiples of 3
We want our deployment to have 3/6/9/etc replicas at all times to have an even AZ spread.
Is there a way to achieve this via HPA config ?

grosser
- 14,707
- 7
- 57
- 61
1
vote
1 answer
Kubernetes - error: Metrics not available for pod
Problem statement
The kubernetes metrics server starts, but doesn't collect metrics.
When running $ kubectl top pods it returns error: Metrics not available for pod /.
Artificats
I'm using the following metrics.yml
apiVersion:…

Michiel
- 1,713
- 3
- 16
- 34
1
vote
1 answer
can configurable declarative Horizontal Pod AutoScaler (HPA) in seldon deployment (CRD) for multiple deployment environment is possible?
Using CRD of SeldonDeployment I want to configure HPA following this example
. The seldon deployment config is -
apiVersion: machinelearning.seldon.io/v1
kind: SeldonDeployment
metadata:
name: seldon-model
spec:
name: test-deployment
…

M.A.K. Simanto
- 634
- 1
- 7
- 20
1
vote
0 answers
How ro apply Keda and hpa both in kubernetes autoscaling
Need some help in K8s autoscaling. I want to have a mixed kubernetes autosclaing policy with HPA and Kubernetes Event Driven Autoscaling(Keda).
Policy should be like:
Run 2 pods in the night time ( 10 PM to 8 AM)
Run minimum N number of pods in the…

Vaneet Kataria
- 575
- 5
- 14
1
vote
1 answer
Kubernetes Metrics Server no metrics known for some Pods
I have the following deployments one of Django api and the other of celery, when I run the command to get the resource consumption of the pods, it only return those of celery and not those of the API. What are potential reasons for this? given that…

Kaizendae
- 853
- 11
- 24
1
vote
1 answer
How does the scale function in Kubernetes ensure that the current task or request is completed when scaling down?
Will unfinished tasks in the container be terminated when scaling down in Kubernetes?

arrow
- 13
- 2
1
vote
1 answer
Azure Kubernetes Service Scaling and HPA
Is there a way that "request per second" based scaling can be enabled on Azure Kubernetes Service?
HPA in AKS does allow horizontal pod scaling based on CPU and Memory constraints but there is no straightforward way to do it for - requests per…

GilliVilla
- 4,998
- 11
- 55
- 96
1
vote
1 answer
HPA ScalingLimited=True TooFewReplicas
That is my HPA. I want to start the deployment with default replicas=3
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: backend-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name:…

DmitrySemenov
- 9,204
- 15
- 76
- 121
1
vote
0 answers
HPA spawns too many pods
This is my hpa configuration.
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: customer-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: customer
minReplicas: 2
maxReplicas: 8
…

prime
- 769
- 1
- 13
- 27
1
vote
2 answers
Can we have multiple targets in K8s Horizontal Pod Autoscaler?
We are considering to use HPA to scale number of pods in our cluster. This is how a typical HPA object would like:
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: hpa-demo
namespace: default
spec:
scaleTargetRef:
…

Yogesh Gupta
- 1,226
- 1
- 12
- 23
1
vote
1 answer
Kubernetes HPA incorrectly calculating averageUtilization for CPU
I am setting up nginx autoscaling based on CPU.
Setup on the nginx deployment is:
resources:
limits:
cpu: "2"
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
When I check…

alex
- 1,905
- 26
- 51