@@ -12191,12 +12191,13 @@ components:
1219112191 type : string
1219212192 type : array
1219312193 autoscaling :
12194- additionalProperties :
12195- type : string
12196- description : ' Autoscaling configuration as key-value pairs. Example: {"metric":
12197- "QueueBacklogPerWorker", "target": "10"} to scale based on queue
12198- backlog'
12199- type : object
12194+ description : ' Autoscaling configuration. Example: {"metric": "QueueBacklogPerWorker",
12195+ "target": 1.01} to scale based on queue backlog. Omit or set to null to
12196+ disable autoscaling'
12197+ oneOf :
12198+ - $ref : ' #/components/schemas/HTTPAutoscalingConfig'
12199+ - $ref : ' #/components/schemas/QueueAutoscalingConfig'
12200+ - $ref : ' #/components/schemas/CustomMetricAutoscalingConfig'
1220012201 command :
1220112202 description : Command overrides the container's ENTRYPOINT. Provide as an array
1220212203 (e.g., ["/bin/sh", "-c"])
@@ -12351,11 +12352,12 @@ components:
1235112352 type : string
1235212353 type : array
1235312354 autoscaling :
12354- additionalProperties :
12355- type : string
12356- description : Autoscaling contains autoscaling configuration parameters for this
12357- deployment
12358- type : object
12355+ description : Autoscaling contains autoscaling configuration parameters for
12356+ this deployment. Omitted when autoscaling is disabled (nil)
12357+ oneOf :
12358+ - $ref : ' #/components/schemas/HTTPAutoscalingConfig'
12359+ - $ref : ' #/components/schemas/QueueAutoscalingConfig'
12360+ - $ref : ' #/components/schemas/CustomMetricAutoscalingConfig'
1235912361 command :
1236012362 description : Command is the entrypoint command run in the container
1236112363 items :
@@ -12490,6 +12492,65 @@ components:
1249012492 required :
1249112493 - name
1249212494 type : object
12495+ HTTPAutoscalingConfig :
12496+ description : Autoscaling config for HTTPTotalRequests and HTTPAvgRequestDuration
12497+ metrics
12498+ properties :
12499+ metric :
12500+ description : Metric must be HTTPTotalRequests or HTTPAvgRequestDuration
12501+ enum :
12502+ - HTTPTotalRequests
12503+ - HTTPAvgRequestDuration
12504+ example : HTTPTotalRequests
12505+ type : string
12506+ target :
12507+ description : ' Target is the threshold value. Default: 100 for HTTPTotalRequests,
12508+ 500 (ms) for HTTPAvgRequestDuration'
12509+ example : 100
12510+ type : number
12511+ time_interval_minutes :
12512+ description : ' TimeIntervalMinutes is the rate window in minutes. Default:
12513+ 10'
12514+ example : 10
12515+ type : integer
12516+ type : object
12517+ QueueAutoscalingConfig :
12518+ description : Autoscaling config for QueueBacklogPerWorker metric
12519+ properties :
12520+ metric :
12521+ description : Metric must be QueueBacklogPerWorker
12522+ enum :
12523+ - QueueBacklogPerWorker
12524+ example : QueueBacklogPerWorker
12525+ type : string
12526+ model :
12527+ description : Model overrides the model name for queue status lookup. Defaults
12528+ to the deployment app name
12529+ type : string
12530+ target :
12531+ description : ' Target is the threshold value. Default: 1.01'
12532+ example : 1.01
12533+ type : number
12534+ type : object
12535+ CustomMetricAutoscalingConfig :
12536+ description : Autoscaling config for CustomMetric metric
12537+ properties :
12538+ custom_metric_name :
12539+ description : CustomMetricName is the Prometheus metric name. Required. Must
12540+ match [a-zA-Z_:][a-zA-Z0-9_:]*
12541+ example : my_custom_metric
12542+ type : string
12543+ metric :
12544+ description : Metric must be CustomMetric
12545+ enum :
12546+ - CustomMetric
12547+ example : CustomMetric
12548+ type : string
12549+ target :
12550+ description : ' Target is the threshold value. Default: 500'
12551+ example : 500
12552+ type : number
12553+ type : object
1249312554 KubernetesEvent :
1249412555 properties :
1249512556 action :
@@ -12608,12 +12669,12 @@ components:
1260812669 type : string
1260912670 type : array
1261012671 autoscaling :
12611- additionalProperties :
12612- type : string
12613- description : ' Autoscaling configuration as key-value pairs. Example: {"metric" :
12614- "QueueBacklogPerWorker", "target": "10"} to scale based on queue
12615- backlog '
12616- type : object
12672+ description : Autoscaling configuration for the deployment. Omit or set to
12673+ null to disable autoscaling
12674+ oneOf :
12675+ - $ref : ' #/components/schemas/HTTPAutoscalingConfig '
12676+ - $ref : ' #/components/schemas/QueueAutoscalingConfig '
12677+ - $ref : ' #/components/schemas/CustomMetricAutoscalingConfig '
1261712678 command :
1261812679 description : Command overrides the container's ENTRYPOINT. Provide as an array
1261912680 (e.g., ["/bin/sh", "-c"])
0 commit comments