Addon: KEDA

Homepage: https://keda.sh/
From MicroK8s version: 1.20+
Supported arch: amd64

KEDA is a Kubernetes based Event Driven Autoscaler. With KEDA, you can drive the scaling of any container in Kubernetes based on the number of events needing to be processed.

To enable the addon:

microk8s enable keda

The addon can be disabled at any time with the command:

microk8s disable keda

@evilnick i think the main addon page already shows keda, but when i clicked on the link it gives 404.
Thanks.

yeah, Iā€™m not sure when this got added, but it isnā€™t enough to just link a post, it has to go in the URL table too. Have added it now so should work in about 10 mins

1 Like

We found that keda could not run on microk8s 1.28.0,as below error:
2023-08-18T05:39:25Z ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {ā€œkindā€: ā€œHorizontalPodAutoscaler.autoscalingā€, ā€œerrorā€: "no matc ā”‚ā”‚ sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1.1 {ā€œkindā€: ā€œHorizontalPodAutoscaler.autoscalingā€, ā€œerrorā€: ā€œno matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"ā€} ā”‚

That error hit the HPA deprecate the autoscaling/v2beta2 since 1.26.
Here is the Kubernetes Removals, Deprecations, and Major Changes in 1.26 | Kubernetes

Here are my microk8s env:
root:~/airgap/keda-example# microk8s version
MicroK8s v1.28.0 revision 5788
root@airgap1:~/airgap/keda-example# kubectl api-versions | grep autoscaling
autoscaling/v1
autoscaling/v2

So that is needed to fix that keda feature as soon.

Hi @navy,

Thank you for reporting this. Could you share a minimal setup/script where we can reproduce this error?

1.28.0 MicroK8s ships keda version 2.11.1. There is a 2.11.2 version released three weeks ago but I do not see any references to fixes in the release notes. Either way 1.28.0 just got released so it is expected some parts of the ecosystem not to be ready for it.

Could you file an issue over at https://github.com/canonical/microk8s so we keep track of the problem?

Many thanks

Hi, kjackal
Sure,I open the issue https://github.com/canonical/microk8s/issues/4167

Konstantinos Tsakalozos via Discuss Kubernetes <notifications@kubernetes.discoursemail.com> äŗŽ2023幓8꜈18ę—„å‘Øäŗ” 15:55写道ļ¼š