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
0
votes
2 answers
Kubernetes HPA doesn't scale up
This is very strange today, I used AWS EKS cluster, and it works fine for my HPA yesterday and today morning. Starting afternoon, nothing change, my HPA suddenly not work!!
This is my HPA:
apiVersion: autoscaling/v2beta2
kind:…

Tianbing Leng
- 560
- 1
- 8
- 22
0
votes
1 answer
HPA with different namespaces
I have a kubernetes setup with following
sn. type service namespace
1. statefulset rabbitmq rabbitmq
2. deployment pods default
3. hpa hpa default
The metrics is exported on…

dempti
- 336
- 1
- 3
- 15
0
votes
1 answer
openfaas deployment.kubernetes.io/max-replicas vs com.openfaas.scale.max
I have a k8s cluster on which I have installed openfaas in the following way:
helm repo add openfaas https://openfaas.github.io/faas-netes/
helm repo update
kubectl apply -f…

Laurent Michel
- 1,069
- 3
- 14
- 29
0
votes
0 answers
use a metric in HPA which was pushed to prometheus pushgateway
I'm pushing a metric via python client to push gateway in prometheus.
Im able to query the metric - "QYZ_normal" in the prometheus UI and get result.
Im trying to understand how to utilize that metric for HPA (i have setup prometheus-adapter)
The…

JamZ
- 551
- 3
- 6
- 13
0
votes
2 answers
HPA not scaling down
I hope you can shed some light on this.
I am facing the same issue as described here: Kubernetes deployment not scaling down even though usage is below threshold
My configuration is almost identical.
I have checked the hpa algorithm, but I cannot…

Catalin
- 9
- 4
0
votes
1 answer
What is the unit of targetAverageValue for external metrics kubernetes.io|container|accelerator|duty_cycle for horizontal pod autoscaling?
I referred this stackoverflow question to set up my HPA(Horizontal Pod Autoscaler) for google kubernetes engine(gke) workload. According to the details of that question and the details specified here I mentioned my targetAverageValue to be 50 which…

Sayak
- 3
- 3
0
votes
1 answer
Kubernetes: What is the use of resource limit if we already have an HPA?
Say I have resource requests and limits set to
resources:
requests:
cpu: "100m"
memory: "512Mi"
limits:
cpu: "500m"
memory: "1024Mi"
and targetCPUUtilizationPercentage set to 80,
so when more than 80m of CPU is utilized by pods…

Zain
- 57
- 2
- 9
0
votes
1 answer
Send kubernetes(GKE) service layer metrics to GCP Load Balancer
I am using GKE and have an application-app1(pod) which is exposed using NodePort and then put behind an ingress.
The ingress-controller has launched a GCP load balancer. Now, the requests coming on path /app1/ are routed to my application.
I…

Luv33preet
- 1,686
- 7
- 33
- 66
0
votes
1 answer
Batch horizontal pod autoscaling
Looking at HPA (pretty new to this), usecase I'm dealing with is to apply the same HPA rules to all deployment (in a specific namespace).
so I'd ideally want to implement something like this :
apiVersion: autoscaling/v1
kind:…

Mahyar
- 1,011
- 2
- 17
- 37
0
votes
1 answer
Add parameters to the EKS controller manager to enable ScaleUp behavoir
I have implemented k8s HPA on our EKS production cluster and it works fine. But we have a data science application in which the traffic increases quickly. So, Iooked into the below article on implementing the behavoir: ScalUp parameter to the…

user10479125
- 123
- 2
- 3
- 10
0
votes
1 answer
Is there a known method to decide auto scaling threshold value?
Is there a known method / keyword/ topic to solve how to decide auto scale threshold value?
Take K8s HPA for example below, I only know I can install some monitoring tools then check memory usage showing on the graph by my eyes to decide a proper…

Abby Wu
- 51
- 7
0
votes
0 answers
Create an HPA for k8s with metrics and pod in different namespaces
I have three namespaces: namespace monitoring with prometheus-operator, namespace rabbitmq with a RabbitMq queue manager and prometheus-adapter, namespace worker with an app that just create inputs for the RabbitMq pod. I want to use an Horizontal…

Toledo Neto
- 37
- 1
- 7
0
votes
2 answers
HPA showing unknown in k8s
I configured HPA using a command as shown below
kubectl autoscale deployment isamruntime-v1 --cpu-percent=20 --min=1 --max=3 --namespace=default
horizontalpodautoscaler.autoscaling/isamruntime-v1 autoscaled
However, the HPA cannot…

Pranam Codur
- 51
- 1
- 6
0
votes
1 answer
Why my GKE node pool does not auto-scale down?
I've got a preemptible node pool which is clearly under-utilized:
The node pool hosts a deployment with HPA with the following setup:
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
labels:
app: backend
spec:
replicas: 1
…

orkenstein
- 2,810
- 3
- 24
- 45
0
votes
1 answer
kubernetes HPA for deployment A and VPA for deployment B
The documentation of VPA states that HPA and VPA should not be used together. It can only be used to gethere when you want scaling on custom metrics.
I have scaling enabled on CPU.
My question is can I have HPA enabled for some deployment (lets say…

pratikvasa
- 1,897
- 20
- 24