Unable to scale Horizontal Pod Autoscale in Amazon EKS

Hello Team, I am using amazon EKS cluster (v-1.11).
I deployed an application called “um-service” of kind “Deployment”. And created HPA on top of it. But still i am not table to scale my pod. Please find the below code snippet i used to deploy my application.

STEP -1). Created deployment for my “um-service” application using below yaml script.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: um-service-no-ssl
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: um-service-no-ssl-app
    spec:
      containers:
      - name: um-service-no-ssl-cnt
        image: dockeratramyam/module-name:HTTP-LB
        ports:
        - containerPort: 8081
        command: [ "/bin/bash", "-c", "--" ]
        args: [ "while true; do export ENLIVEN_HOME=/data/enliven/installations && export LNAG==en_US.utf8 && /home/enliven/wildfly-10.0.0.Final/bin/standalone.sh -b 0.0.0.0; done;" ]

STEP-2). Exposed service to the deployment using the below yaml file

apiVersion: v1
kind: Service
metadata:
  name: um-service-no-ssl
spec:
  selector:
    app: um-service-no-ssl-app
  ports:
    - name: um-service-no-ssl
      port: 8081
      nodePort: 30143
  type: LoadBalancer

STEP-3). configured metrics server using below link and followed the steps

git clone https://github.com/kubernetes-incubator/metrics-server.git
kubectl create -f deploy/1.8+/

STEP-4). Created HPA using below command

kubectl autoscale deployment um-service-no-ssl --cpu-percent=50 --min=1 --max=10

Questions:

  1. Unable to scale pod even though my pod cpu utilization exceeds > 50, So please help me where i am doing mistake…?

Do you see any errors?

How do check The cpu usage of the pod? What events does the hpa object show? For how long is the cpu usage increased?

We will need more information to understand what is happening :slight_smile: