Demo entry 6350296

openshift

   

Submitted by anonymous on Mar 09, 2017 at 12:10
Language: Bash. Code size: 382 Bytes.

apiVersion: extensions/v1beta1
kind: HorizontalPodAutoscaler
metadata:
  name: frontend   //容器集群自动伸缩器名称
spec:
  scaleRef:
    kind: DeploymentConfig   //缩放的对象类型
    name: frontend   //缩放的对象名称
    apiVersion: v1 
    subresource: scale
  minReplicas: 1   //缩减Pod副本的最小数量
  maxReplicas: 10   //扩展Pod副本的最大数量
  cpuUtilization:
    targetPercentage: 80   //Pod使用请求CPU的百分比阈值

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).