标签: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