X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcloudtaf.git;a=blobdiff_plain;f=resources%2Ftest_charts%2Fcustom-metrics%2Ftemplates%2Fpodinfo-hpa-custom.yaml;fp=resources%2Ftest_charts%2Fcustom-metrics%2Ftemplates%2Fpodinfo-hpa-custom.yaml;h=086411bf73bec775ce35a74489ccd76a47d96769;hp=0000000000000000000000000000000000000000;hb=af5eb3ff36b92ab1d9c156ffa0391eadc73eb6ba;hpb=025a45508d009db84c34076fb4a668f712628d6d 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 index 0000000..086411b --- /dev/null +++ b/resources/test_charts/custom-metrics/templates/podinfo-hpa-custom.yaml @@ -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