Skip to content

Commit b4bba26

Browse files
authored
Merge pull request #27930 from rh-max/srvls-kafka-setup-updates
Updated instructions on configuring KnativeKafka
2 parents a3351d3 + 1eecaa5 commit b4bba26

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

modules/serverless-install-kafka-odc.adoc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// serverless/serverless-kafka.adoc
44

55
[id="serverless-install-kafka-odc_{context}"]
6-
= Installing Apache Kafka components using the web console
6+
= Installing Apache Kafka components by using the web console
77

88
Cluster administrators can enable the use of Apache Kafka functionality in an {ServerlessProductName} deployment by instantiating the `KnativeKafka` custom resource definition provided by the *Knative Kafka* {ServerlessOperatorName} API.
99

@@ -18,9 +18,13 @@ Cluster administrators can enable the use of Apache Kafka functionality in an {S
1818

1919
. In the *Administrator* perspective, navigate to *Operators* -> *Installed Operators*.
2020
. Check that the *Project* dropdown at the top of the page is set to *Project: knative-eventing*.
21-
. Click *Knative Kafka* in the list of *Provided APIs* for the {ServerlessOperatorName} to go to the *Knative Kafka* tab.
22-
. Click *Create Knative Kafka*.
23-
. Optional: Configure the *KnativeKafka* object in the *Create Knative Kafka* page. To do so, use either the default form provided or edit the YAML.
21+
. In the list of *Provided APIs* for the {ServerlessOperatorName}, find the *Knative Kafka* box and click *Create Instance*.
22+
. Configure the *KnativeKafka* object in the *Create Knative Kafka* page.
23+
+
24+
[IMPORTANT]
25+
====
26+
To use the Kafka channel or Kafka source on your cluster, you must toggle the *Enable* switch for the options you want to use to *true*. These switches are set to *false* by default. Additionally, to use the Kafka channel, you must specify the Boostrap Servers.
27+
====
2428
.. Using the form is recommended for simpler configurations that do not require full control of *KnativeKafka* object creation.
2529
.. Editing the YAML is recommended for more complex configurations that require full control of *KnativeKafka* object creation. You can access the YAML by clicking the *Edit YAML* link in the top right of the *Create Knative Kafka* page.
2630
. Click *Create* after you have completed any of the optional configurations for Kafka. You are automatically directed to the *Knative Kafka* tab where *knative-kafka* is in the list of resources.
@@ -43,7 +47,9 @@ $ oc get pods -n knative-eventing
4347
.Example output
4448
[source,terminal]
4549
----
46-
NAME READY STATUS RESTARTS AGE
47-
kafka-ch-controller-5d85f5f779-kqvs4 1/1 Running 0 126m
48-
kafka-webhook-66bd8688d6-2grvf 1/1 Running 0 126m
50+
NAME READY STATUS RESTARTS AGE
51+
kafka-ch-controller-85f879d577-xcbjh 1/1 Running 0 44s
52+
kafka-ch-dispatcher-55d76d7db8-ggqjl 1/1 Running 0 44s
53+
kafka-controller-manager-bc994c465-pt7qd 1/1 Running 0 40s
54+
kafka-webhook-54646f474f-wr7bb 1/1 Running 0 42s
4955
----

modules/serverless-kafka-source-yaml.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,19 @@ spec:
5959
----
6060
$ oc apply -f <filename>
6161
----
62+
63+
.Verification
64+
65+
* Verify that the Kafka event source was created:
66+
+
67+
[source, terminal]
68+
----
69+
$ oc get pods
70+
----
71+
+
72+
.Example output
73+
[source, terminal]
74+
---
75+
NAME READY STATUS RESTARTS AGE
76+
kafkasource-kafka-source-5ca0248f-... 1/1 Running 0 13m
77+
---

0 commit comments

Comments
 (0)