apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: interlok-autoscaler
  namespace: default
spec:
  scaleTargetRef:
    apiVersion: extensions/v1beta1
    kind: Deployment
    name: interlok
  minReplicas: 1
  maxReplicas: 5
  metrics:
  - type: Pods
    pods:
      metricName: MessageMetrics
      targetAverageValue: 100