apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: indexer
spec:
  scaleTargetRef:
    apiVersion: extensions/v1beta1
    kind: Deployment
    name: indexer
  minReplicas: 1
  maxReplicas: 5
  metrics:
  - type: Pods
    pods:
      metricName: http_requests_google_api
      targetAverageValue: 300m