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?