apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: step3-api spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: step3-api minReplicas: 2 maxReplicas: 10 behavior: scaleUp: stabilizationWindowSeconds: 0 policies: - type: Percent value: 100 periodSeconds: 60 - type: Pods value: 2 periodSeconds: 60 selectPolicy: Max scaleDown: stabilizationWindowSeconds: 300 policies: - type: Percent value: 25 periodSeconds: 60 metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 60