Can anyone help me please. Begginer here in kubernetes.
Hi Deigo, The issue seems to be caused by the fact that there is a dependency needed for HPA to run on the cluster running the metrics-server. I had this in my setup (non-cloud bare metal) and once I installed this, the HPA was able to accurately identify the current usage:
One note I will make is that after initially installing the metrics-server, I had errors being unable to collect metrics and that forced me to tweak the deployment file and add these to metric-server-deployment.yaml file:
This is noted here: https://github.com/kubernetes-incubator/metrics-server/issues/131
Once I deleted the metric-server, tweaked the YAML file, and re-deployed, it all worked fine and showed my current usage metrics. Hope this helps.