hpa自动扩容缩

kubectl autoscale deployment 名称 --cpu-percent=80 --min=3 --max=6 -n 命名空间
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: gsvauth-v1
  namespace: istio-system
spec:
  maxReplicas: 6
  minReplicas: 1
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: gsvauth-v1
  targetCPUUtilizationPercentage: 80

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注