kedacore / keda-olm-operator

Operator for deploying KEDA Controller on OperatorHub.io/OLM
Apache License 2.0
31 stars 23 forks source link

Please remove this constraint: KedaController resource needs to be created in namespace keda with name keda, otherwise it will be ignored #90

Closed imriss closed 3 years ago

imriss commented 3 years ago

Use-Case

I would like to use KEDA OLM Operator to deploy multiple KEDA controllers, each one monitoring one specific namespace. However, when I tried it, it seems that it got ignored with the following error message in the OLM container logs:

The KedaController resource needs to be created in namespace keda with name keda, otherwise it will be ignored

Specification

It seems that KEDA itself allows deployment in namespaces other than keda.

zroubalik commented 3 years ago

Hi, currently it is not possible to run multiple KEDA instances on one cluster, hence the constraint.

https://keda.sh/docs/2.3/operate/cluster/#high-availability

imriss commented 3 years ago

Hi @zroubalik , thanks I am not interested to have HA for the controller (multiple replica for one controller). Instead, I would like to deploy multiple controllers (each one would have only replicas=1, and would monitor a different namespace). It seems that this is possible (for example, https://github.com/kedacore/charts/pull/43, https://github.com/kedacore/charts/pull/43#issuecomment-616439559). Thanks

zroubalik commented 3 years ago

Hi, yeah I understand your usecase. But as I mentioned it is not possible to run mutliple KEDA instances on one cluster at the moment. There is a limitation in the kuberenetes custom metrics library, that's being used by KEDA.

https://github.com/kedacore/keda/issues/470

We would like to have this problem fixed in a near future. Using KEDA to monitor mutliple namespaces is completely viable solution, that you can use in the meantime :)