apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: product-perf 
  namespace: perf-test
  labels:
        app: product-perf 
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: product-perf 
  minReplicas: 1
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      targetAverageUtilization: 20

