forked from yannh/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhorizontalpodautoscalerspec-autoscaling-v1.json
39 lines (39 loc) · 1.61 KB
/
horizontalpodautoscalerspec-autoscaling-v1.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
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"description": "specification of a horizontal pod autoscaler.",
"properties": {
"maxReplicas": {
"description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
"format": "int32",
"type": [
"integer",
"null"
]
},
"minReplicas": {
"description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.",
"format": "int32",
"type": [
"integer",
"null"
]
},
"scaleTargetRef": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.15/_definitions.json#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference",
"description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource."
},
"targetCPUUtilizationPercentage": {
"description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.",
"format": "int32",
"type": [
"integer",
"null"
]
}
},
"required": [
"scaleTargetRef",
"maxReplicas"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}