Kubernates autoscaling. ScalingActive False

7/5/2018

Trying to add autoscaling to my deployment,but getting ScalingActive False,most answers are about DNS,Heapster,Limits I've done all but still can't find solution.

kubectl get hpa
NAME      REFERENCE          TARGETS         MINPODS   MAXPODS   REPLICAS   AGE
fetch     Deployment/fetch   <unknown>/50%   1         4         1          13m


kubectl cluster-info
Kubernetes master is running at --
addon-http-application-routing-default-http-backend is running at --
addon-http-application-routing-nginx-ingress is running at --
Heapster is running at  --
KubeDNS is running at --
kubernetes-dashboard is running at --

kubectl describe hpa`

kubectl describe hpa

yaml `

yaml

PS.I tried to deploy example witch azure provides....getting the same,so yaml settings isn't problem

kubectl describe pod `

undefined

kubectl top pod fetch-54f697989d-wczvn --namespace=default`

enter image description here

autoscaling by memory yaml `

enter image description here

description`

enter image description here

kubectl get hpa give the same result,unknown/60%

-- Grigor
kubernetes

2 Answers

7/9/2018

This one helped me github issue. I just deployed metric server to my cluster and recreated hpa.

-- Grigor
Source: StackOverflow

7/5/2018

I've experienced similar issues, my solutions are setting resources.requests.cpu section up in deployment config in order to calculate the current percentage based on the requested resource values. Your event log messages also means not to set up the request resource, but your deployment yaml seems no problem to me too.

Let we do double check as following steps.

If you can verify the resources as following cmd,

# kubectl top pod <your pod name> --namespace=<your pod running namespace>

And you would also need to check the pod requested cpu resources using below cmd in order to ensure same the config with your deployment yaml.

# kubectl describe pod <your pod name>
...
Requests:
  cpu:      250m
...

I hope it help you to resolve your issues. ;)

-- Daein Park
Source: StackOverflow