Can someone confirm if this this a typical HPA (HorizontalPodAutoscaler) for a PROD env?

Hi.

I don’t have experience in prod environments.
Can you please confirm if this kind of HPA HorizontalPodAutoscaler is typical in prod or can be used?

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: hpa-example
  namespace: default
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: deploy-example
  minReplicas: 2
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 50 # value is in percentage, 50% in this case
  - type: Resource
    resource:
      name: memory
      target:                
		type: AverageValue
        averageValue: 500Mi   # absolute value, bytes in memory
  behavior:
    scaleDown:
      stabilizationWindowSeconds: 300
    scaleUp:
      policies:
        - type: Pods
          value: 4
          periodSeconds: 60
        - type: Percent
          value: 50
          periodSeconds: 60
      selectPolicy: Max
	  


Thank you!

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.