Skip to content

Commit

Permalink
added docs for kafka scaling to kafka source docs (#5850)
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <[email protected]>
  • Loading branch information
Cali0707 authored Feb 2, 2024
1 parent fd39af6 commit 506aa83
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/eventing/sources/kafka-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 506aa83

Please sign in to comment.