--- /dev/null
+---
+apiVersion: autoscaling/v2beta1
+kind: HorizontalPodAutoscaler
+metadata:
+ name: podinfo
+ namespace: kube-system
+spec:
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: podinfo
+ minReplicas: 2
+ maxReplicas: 10
+ metrics:
+ - type: Pods
+ pods:
+ metricName: http_requests
+ targetAverageValue: 5