apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: labels: app.kubernetes.io/name: rfqm app.kubernetes.io/component: api name: rfqm-api spec: minReplicas: 2 maxReplicas: 20 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: rfqm-api metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 70