added docs for kafka scaling to kafka source docs (#5851)

Signed-off-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
This commit is contained in:
Knative Prow Robot 2024-02-02 14:03:25 +00:00 committed by GitHub
parent 56793969e0
commit 92212f243f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 0 deletions

View File

@ -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