Keda Trait
The KEDA trait is experimental and may not be suitable for production grade use cases. |
The KEDA trait can be used for automatic integration with KEDA autoscalers. The trait can be either manually configured using the triggers
option or automatically configured via markers in the Kamelets.
For information on how to use KEDA enabled Kamelets with the KEDA trait, refer to the KEDA section in the Pipes user guide. If you want to create Kamelets that contain KEDA metadata, refer to the KEDA section in the Kamelets development guide.
The KEDA trait is disabled by default.
This trait is available in the following profiles: Kubernetes, Knative, OpenShift.
Configuration
Trait properties can be specified when running any integration with the CLI:
$ kamel run --trait keda.[key]=[value] --trait keda.[key2]=[value2] integration.yaml
The following configuration options are available:
Property | Type | Description |
---|---|---|
|
| Can be used to enable or disable a trait. All traits share this common property. |
|
| Enables automatic configuration of the trait. Allows the trait to infer KEDA triggers from the Kamelets. |
|
| Set the spec→replicas field on the top level controller to an explicit value if missing, to allow KEDA to recognize it as a scalable resource. |
|
| Interval (seconds) to check each trigger on. |
|
| The wait period between the last active trigger reported and scaling the resource back to 0. |
|
| Enabling this property allows KEDA to scale the resource down to the specified number of replicas. |
|
| Minimum number of replicas. |
|
| Maximum number of replicas. |
|
| Definition of triggers according to the KEDA format. Each trigger must contain |