forked from instrumenta/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpodsmetricsource-autoscaling-v2beta1.json
26 lines (26 loc) · 1.29 KB
/
podsmetricsource-autoscaling-v2beta1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"required": [
"metricName",
"targetAverageValue"
],
"properties": {
"metricName": {
"description": "metricName is the name of the metric in question",
"type": [
"string",
"null"
]
},
"selector": {
"description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.",
"$ref": "https://kubernetesjsonschema.dev/v1.12.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
},
"targetAverageValue": {
"description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
"$ref": "https://kubernetesjsonschema.dev/v1.12.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
}
},
"$schema": "http://json-schema.org/schema#",
"type": "object"
}