kubernetes的HPA架构
2019-09-29 11:33:32 55 举报
kubernetes的hpa架构
作者其他创作
大纲/内容
。。。
Pod2
Pod1
创建新的Pod
min=2
CPU(v1)Mem(v2alpha2)自定义metrics(v2alpha2)
需kube-controller-manager配置参数:--horizontal-pod-autoscaler-use-rest-clients=true
PodNN<=9
Scale
RC/Deployment
metrics API
获取metrics
k8s-admin
kube-controller-manager
apiVersion: autoscaling/v1kind: HorizontalPodAutoscalermetadata: name: php-apache namespace: defaultspec: maxReplicas: 9 minReplicas: 2 scaleTargetRef: kind: Deployment name: php-apache targetCPUUtilizationPercentage: 50
Horizontal Pod Autoscaler
kube-apiserver
收藏
0 条评论
下一页