Skip to content

Commit 1c05ece

Browse files
authored
Merge pull request #77485 from rh-max/srvls-autoscaling-keda
[SRVKE-1155] Add the KEDA autoscaling for KafkaSource docs
2 parents c25767c + 1affb03 commit 1c05ece

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

eventing/event-sources/serverless-kafka-developer-source.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ include::modules/specifying-sink-flag-kn.adoc[leveloffset=+2]
2323
include::modules/serverless-kafka-source-yaml.adoc[leveloffset=+1]
2424

2525
include::modules/serverless-kafka-sasl-source.adoc[leveloffset=+1]
26+
27+
include::modules/serverless-kafka-source-autoscale-keda.adoc[leveloffset=+1]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * eventing/event-sources/serverless-kafka-developer-source.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="serverless-kafka-source-autoscale-keda_{context}"]
7+
= Configuring KEDA autoscaling for KafkaSource
8+
9+
You can configure Knative Eventing sources for Apache Kafka (KafkaSource) to be autoscaled using the Custom Metrics Autoscaler Operator, which is based on the Kubernetes Event Driven Autoscaler (KEDA).
10+
11+
:FeatureName: Configuring KEDA autoscaling for KafkaSource
12+
include::snippets/technology-preview.adoc[leveloffset=+1]
13+
14+
.Prerequisites
15+
16+
* The {ServerlessOperatorName}, Knative Eventing, and the `KnativeKafka` custom resource are installed on your cluster.
17+
18+
.Procedure
19+
20+
. In the `KnativeKafka` custom resource, enable KEDA scaling:
21+
+
22+
.Example YAML
23+
[source,yaml]
24+
----
25+
apiVersion: operator.serverless.openshift.io/v1alpha1
26+
kind: KnativeKafka
27+
metadata:
28+
name: knative-kafka
29+
namespace: knative-eventing
30+
spec:
31+
config:
32+
kafka-features:
33+
controller-autoscaler-keda: enabled
34+
----
35+
36+
. Apply the `KnativeKafka` YAML file:
37+
+
38+
[source,terminal]
39+
----
40+
$ oc apply -f <filename>
41+
----

0 commit comments

Comments
 (0)