// Module included in the following assemblies:
//
// deploying/assembly_deploy-kafka-connect.adoc

[id='deploying-kafka-connect-{context}']
= Deploying Kafka Connect to your Kubernetes cluster

This procedure shows how to deploy a Kafka Connect cluster to your Kubernetes cluster using the Cluster Operator.

A Kafka Connect cluster is implemented as a `Deployment` with a configurable number of nodes (also called _workers_) that distribute the workload of connectors as _tasks_ so that the message flow is highly scalable and reliable.

The deployment uses a YAML file to provide the specification to create a `KafkaConnect` resource.

In this procedure, we use the example file provided with Strimzi:

* `examples/connect/kafka-connect.yaml`

For information about configuring the `KafkaConnect` resource (or the `KafkaConnectS2I` resource with Source-to-Image (S2I) support),
see link:{BookURLUsing}#assembly-kafka-connect-str[Kafka Connect cluster configuration^] in the _Using Strimzi_ guide.

.Prerequisites

* xref:deploying-cluster-operator-str[The Cluster Operator must be deployed.]
* xref:deploying-kafka-cluster-str[Running Kafka cluster.]

.Procedure

. Deploy Kafka Connect to your Kubernetes cluster.
For a Kafka cluster with 3 or more brokers, use the `examples/connect/kafka-connect.yaml` file.
For a Kafka cluster with less than 3 brokers, use the `examples/connect/kafka-connect-single-node-kafka.yaml` file.
+
[source,shell,subs="attributes+"]
----
kubectl apply -f examples/connect/kafka-connect.yaml
----
. Verify that Kafka Connect was successfully deployed:
+
[source,shell,subs="attributes+"]
----
kubectl get deployments
----
