sync commit 8c73ea5d8a07eae2a6853dbeb0f448acfb09eaca from kubevela-refs/heads/master
This commit is contained in:
parent
5ab0bcfb7f
commit
f89a7dbb4c
|
@ -69,7 +69,7 @@ In this step, we will define the schematic of KEDA based autoscaling trait, i.e.
|
|||
schematic:
|
||||
cue:
|
||||
template: |-
|
||||
outputs: cpu-scaler: {
|
||||
outputs: kedaScaler: {
|
||||
apiVersion: "keda.sh/v1alpha1"
|
||||
kind: "ScaledObject"
|
||||
metadata: {
|
||||
|
@ -80,17 +80,17 @@ schematic:
|
|||
name: context.name
|
||||
}
|
||||
triggers: [{
|
||||
type: paramter.type
|
||||
type: parameter.triggerType
|
||||
metadata: {
|
||||
type: "Utilization"
|
||||
value: paramter.value
|
||||
value: parameter.value
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
paramter: {
|
||||
parameter: {
|
||||
// +usage=Types of triggering application elastic scaling, Optional: cpu, memory
|
||||
type: string
|
||||
triggerType: string
|
||||
// +usage=Value to trigger scaling actions, represented as a percentage of the requested value of the resource for the pods. like: "60"(60%)
|
||||
value: string
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue