robot tcs, test charts, robot container added
[ta/cloudtaf.git] / resources / test_charts / custom-metrics / templates / podinfo-hpa-custom.yaml
diff --git a/resources/test_charts/custom-metrics/templates/podinfo-hpa-custom.yaml b/resources/test_charts/custom-metrics/templates/podinfo-hpa-custom.yaml
new file mode 100644 (file)
index 0000000..086411b
--- /dev/null
@@ -0,0 +1,18 @@
+---
+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