From b8fddde0eeb1dd95b8eac4177f47ffd039f4e45d Mon Sep 17 00:00:00 2001 From: Calum Murray Date: Thu, 1 Feb 2024 15:43:34 -0500 Subject: [PATCH] added docs for kafka scaling to kafka source docs Signed-off-by: Calum Murray --- docs/eventing/sources/kafka-source/README.md | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/eventing/sources/kafka-source/README.md b/docs/eventing/sources/kafka-source/README.md index 2da7c216b72..ee27fbb2e23 100644 --- a/docs/eventing/sources/kafka-source/README.md +++ b/docs/eventing/sources/kafka-source/README.md @@ -204,6 +204,28 @@ Alternatively, if you are using a GitOps approach, you can add the `consumers` k ``` +### Automatic Scaling with KEDA + +Kafka Sources have experimental (Alpha) support for serverless scaling with KEDA, including scale to zero. If you want Knative and KEDA to scale your Kafka source for you, +you must [install KEDA](https://keda.sh/docs/2.13/deploy/), and then enable the feature flag. + +To enable the feature flag, you need to create or modify the `config-kafka-features` configmap in the `knative-eventing` namespace. You can create the file as below: + +```yaml + + apiVersion: v1 + kind: Configmap + metadata: + name: config-kafka-features + namespace: knative-eventing + data: + controller-autoscaler-keda: "enabled" + +``` + +From there, apply the configmap into your cluster and assuming that KEDA is also installed your Kafka Sources will scale for you! For more information on other values you +can add to the `config-kafka-features` configmap, [read about the experimental Kafka Broker features](../../brokers/broker-types/kafka-broker/configuring-kafka-features). + ### Verify