KEDA as Autoscaling Trait

    In the following tutorial, you will learn to add KEDA as a new autoscaling trait to your KubeVela based platform.

    into your K8s system.

    A full example can be found in this keda.yaml. Several highlights are list below.

    We use label definition.oam.dev/description to add one line description for this trait. It will be shown in helper commands such as $ vela traits.

    This is how you claim and register KEDA ‘s API resource (scaledobjects.keda.sh) as a trait definition.

    A trait can be attached to specified workload types or all (i.e. "*" means your trait can work with any workload type).

    In this step, we will define the schematic of KEDA based autoscaling trait, i.e. we will create abstraction for KEDA with simplified primitives, so end users of this platform don’t really need to know what is KEDA at all.

    This is a CUE based template which only exposes type and value as trait properties for user to set.

    As long as the definition file is ready, you just need to apply it to Kubernetes.