// Module included in the following assemblies:
//
// assembly-kafka-cluster.adoc

[id='deploying-kafka-cluster-openshift-{context}']
= Deploying the Kafka cluster to {OpenShiftName}

{OpenShiftName} provides a template for deploying the Kafka cluster either in the {OpenShiftName} console or on the command-line.

.Prerequisites

* Before deploying a Kafka cluster, the Cluster Operator must be deployed.

.Procedure

. If you are planning to use the Kafka cluster for development or testing, create an ephemeral cluster
+
[source,shell]
----
oc apply -f examples/kafka/kafka-ephemeral.yaml
----

. If you are planning to use the Kafka cluster in production, create a persistent cluster
+
[source,shell]
----
oc apply -f examples/kafka/kafka-persistent.yaml
----

.Additional resources
* For more information about deploying the Cluster Operator, see xref:cluster-operator-str[]
For more information about the different configuration options supported by the `Kafka` resource, see xref:assembly-deployment-configuration-kafka-str[]
