码迷,mamicode.com
首页 > Web开发 > 详细

kubernetes 1.9.3自动伸缩HPA HorizontalPodAutoscaler配置

时间:2018-05-24 10:34:08      阅读:792      评论:0      收藏:0      [点我收藏+]

标签:kubernetes

  • 排错
  • 1:

    Warning FailedGetResourceMetric 12s (x41 over 20m) horizontal-pod-autoscaler unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)

    解决:kube-controller-manager的启动项加上:

                --horizontal-pod-autoscaler-use-rest-clients=false

    2:

    heapster启动参数加入:
    --api-server

    3:

    missing request for cpu on container xxxx in pod xxxx/xxxx-xxxxxxxxxxx-xxxxxx

    解决:给该应用加上request资源限制

    kubernetes 1.9.3自动伸缩HPA HorizontalPodAutoscaler配置

    标签:kubernetes

    原文地址:http://blog.51cto.com/antistand/2119714

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!