非常牛逼的技术,目前最新的版本支持众多的Feature
HPA功能需要Heapster收集的CPU、内存等数据作为支撑
配置示例:
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: php-apache
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: php-apache
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 50
- type: Pods
pods:
metricName: packets-per-second
targetAverageValue: 1k
- type: Object
object:
metricName: requests-per-second
target:
apiVersion: extensions/v1beta1
kind: Ingress
name: main-route
targetValue: 10k
更多资料:
https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
博客介绍了Kubernetes这一技术,其最新版本支持众多Feature。还提到HPA功能需Heapster收集的CPU、内存等数据支撑,并给出配置示例及更多资料链接。
960

被折叠的 条评论
为什么被折叠?



