|
| 1 | +// Module is included in the following assemblies: |
| 2 | +// |
| 3 | +// serverless/serverless-kafka.adoc |
| 4 | + |
| 5 | +[id="serverless-install-kafka-odc_{context}"] |
| 6 | += Installing Apache Kafka components using the web console |
| 7 | + |
| 8 | +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. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | + |
| 12 | +* The {ServerlessOperatorName} and Knative Eventing are installed. |
| 13 | +* You have access to a Red Hat AMQ Streams cluster. |
| 14 | +* You have cluster administrator permissions on {product-title}. |
| 15 | +* You are logged in to the web console. |
| 16 | + |
| 17 | +.Procedure |
| 18 | + |
| 19 | +. In the *Administrator* perspective, navigate to *Operators* → *Installed Operators*. |
| 20 | +. 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. |
| 24 | +.. Using the form is recommended for simpler configurations that do not require full control of *KnativeKafka* object creation. |
| 25 | +.. 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. |
| 26 | +. 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. |
| 27 | + |
| 28 | +.Verification steps |
| 29 | + |
| 30 | +. Click on the *knative-kafka* resource in the *Knative Kafka* tab. You are automatically directed to the *Knative Kafka Overview* page. |
| 31 | +. View the list of *Conditions* for the resource and confirm that they have a status of *True*. |
| 32 | ++ |
| 33 | +image::knative-kafka-overview.png[Kafka Knative Overview page showing Conditions] |
| 34 | ++ |
| 35 | +If the conditions have a status of *Unknown* or *False*, wait a few moments to refresh the page. |
| 36 | +. Check that the Knative Kafka resources have been created: |
| 37 | ++ |
| 38 | +[source,terminal] |
| 39 | +---- |
| 40 | +$ oc get pods -n knative-eventing |
| 41 | +---- |
| 42 | ++ |
| 43 | +.Example output |
| 44 | +[source,terminal] |
| 45 | +---- |
| 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 |
| 49 | +---- |
0 commit comments