简体   繁体   中英

Getting Unkown target for HPA

Am actually new to kube.netes, but as now am good with the terms such as deployment, pods etc. Well i was trying an example of HPA (Horizontal pod autoscaler), and as prerequisite metrics-servers is already integrated, but after all those things am not able to see HPA working as expected enter image description here When execute below cmd- Kubectl get hpa

Unknown in the target, although i have tried all my luck referring online forum but didn't got any break through Any help would be really appreciated

Thank you

I was getting same issue, fixed after adding cpu requests in my pod defination. Below points can be the reason in most of the cases

  • Metric server is not installed in your kubernates cluster, you can check with command (kubectl get deploy,svc -n kube-system | egrep metrics-server)
  • Check if you have provided resources for deployment/sts/pod definations

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM