apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: hpa1
spec:
maxReplicas: 3
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
lable:
hpa: true
metrics:
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 60
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
不能配置按lable 来作用于所有pod?
你都自动扩缩容了,还要啥所有pod,这玩意针对类似deploy这样的资源进行自动扩缩容