apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: dim-api-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: dim-api
  minReplicas: 3
  maxReplicas: 18
  metrics:
    - type: Resource
      resource:
        name: cpu
        targetAverageUtilization: 60
