繁体   English   中英

Kubernetes水平pod自动缩放不起作用

[英]Kubernetes horizontal pod autoscaling not working

kubectl version Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"clean"} Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"clean"}

控制器管理器上的错误日志: Failed to reconcile hello-world: failed to compute desired number of replicas based on CPU utilization for Deployment/default/hello-world: failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 0/3 of pods

我可以直接与Heapster交谈并获取我的pod指标:curl http:// $ MY_HEAPSTER_SERVICE_IP:8082 / api / v1 / model / namespaces / default / pods // hello-world-819237062-j0ubt / metrics / cpu-usage

{
  "metrics": [
   {
    "timestamp": "2016-04-05T16:49:00Z",
    "value": 0
   },
   {
    "timestamp": "2016-04-05T16:48:00Z",
    "value": 0
   }
  ],
  "latestTimestamp": "2016-04-05T16:49:00Z"
 }

正如上面的评论所解释的那样,Heapster在非默认位置运行,水平pod自动调节器控制器没有预料到。

我打开了一个问题 ,使其可配置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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