EKS HorizontalPodAutoscalers no working with memory metric

0

I have an eks cluster in the latest version (1.21). I am trying to use a HorizontalPodAutoscaler to scale with memory usage but there is no scaling happening.

Utilization is currently at 164% but the hpa is not scaling up.

I am using the following hpa config.

apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
  name: "xxx-service-autoscaler"
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: xxx-service
  minReplicas: 1
  maxReplicas: 3
  metrics:
    - type: Resource
      resource:
        name: memory
        target:
          type: Utilization
          averageUtilization: 100
已提問 2 年前檢視次數 86 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南