Questions tagged [horizontalpodautoscaler]

36 questions
9
votes
4 answers

Kubernetes HPA on AKS is failing with error 'missing request for cpu'

I am trying to setup HPA for my AKS cluster. Following is the Kubernetes manifest file: apiVersion: apps/v1 kind: Deployment metadata: annotations: kompose.cmd: XXXXXX\tools\kompose.exe convert kompose.version: 1.21.0 (992df58d8) …
Sormita Chakraborty
  • 1,015
  • 2
  • 19
  • 36
4
votes
3 answers

How to find the reason of a pod crashing?

Is there a way to see why a kubernetes pod is failing with the status "craskLoopBackOff" under a heavy load? I have a HorizontalPodAutoscaler which never kicks in. In its status it always shows low (Under 50%) cpu and memory usage. Tailing the…
developer747
  • 15,419
  • 26
  • 93
  • 147
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…
2
votes
2 answers

Rolling update to achieve zero down time vertical pod autoscaler in Kubernetes

Kubernetes vertical pod autoscaler (autoscale memory, cpu resources of pods) necessitates a restart of the pod to be able to use the newly assigned resources which might add small window of unavailability. My question is that if the deployment of…
2
votes
2 answers

Is it possible to get total number of message in SQS?

I see there are 2 separate metrics ApproximateNumberOfMessagesVisible and ApproximateNumberOfMessagesNotVisible. Using number of messages visible causes processing pods to get triggered for termination immediately after they pick up the message…
2
votes
2 answers

Kubernetes metrics-server doesn't provide all metrics or scale HPA

Following the example here https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects, I have created installed metrics-server and modified it as follows: …
2
votes
0 answers

Horizontal pod autoscaler not able to get metrics in minikube deployment

This is an open issue: https://github.com/kubernetes/minikube/issues/9370 Steps to reproduce: $ minikube start — extra-config=controller-manager.horizontal-pod-autoscaler-upscale-delay=1m —…
1
vote
0 answers

keda-operator-metrics-apiserver: no matching metrics found for s0-prometheus-http_requests_in_progress

I am getting below error on keda-operator-metrics-apiserver pod logs when trying to scale using KEDA. E0602 05:26:23.321583 1 status.go:71] apiserver received an error that is not an metav1.Status:…
Bishan
  • 15,211
  • 52
  • 164
  • 258
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 ?
1
vote
1 answer

No matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2" when installing knative serving

I followed the official instruction to installing knative serving on a self-built k8s cluster. But when running the second line kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.2/serving-core.yaml I got unable to…
Lyudmila Sun
  • 11
  • 1
  • 2
1
vote
2 answers

What is the unit of lower case "m" and "k" in the image below?

Is there any documentation that describes this "m" and "k". In the k8s documentation, I could see for "Mi", "Gi" etc, but not this. Any help would be greatly appreciated.
1
vote
1 answer

Why is there an error in Horizontal Pod Autoscaler Yaml?

2022-08-17T16:14:15.5682728Z error: error validating "deployment.yml": error validating data: ValidationError(HorizontalPodAutoscaler.spec.metrics[1].resource.target.averageUtilization): invalid type for…
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

How to scale my app on nginx metrics without prometheus?

I want to scale my application based on custom metrics (RPS or active connections in this cases). Without having to set up prometheus or use any external service. I can expose this API from my web app. What are my options?
Zàf Mohammed
  • 127
  • 1
  • 9
1
vote
1 answer

Kubernetes - ScaledObject - Keda - RabbitMQ

i have created a ScaledObject and TriggerAuthentication using Keda, in order to horizontally autoscale my pods based on a RabbitMQ length. but for some reason, when i try to query my ScaledObjects like this: kubectl get ScaledObjects -n…
1
2 3