apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: test-app-hpa
  namespace: REPLACED
  labels:
    app: test-app
spec:
  scaleTargetRef:
    kind: Deployment
    name: test-app
    apiVersion: apps/v1beta1
  minReplicas: 1
  maxReplicas: 5
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 80
