:_mod-docs-content-type: PROCEDURE

// Module included in the following assemblies:
//
// deploying/assembly_deploy-http-bridge.adoc

[id='deploying-http-bridge-{context}']
= Deploying HTTP Bridge

[role="_abstract"]
This procedure shows how to deploy a HTTP Bridge cluster to your Kubernetes cluster using the Cluster Operator.

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

Strimzi provides xref:config-examples-{context}[example configuration files].
In this procedure, we use the following example file:

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

.Prerequisites

* Cluster Operator is deployed.
* Kafka cluster is running.
+
This procedure assumes that the Kafka cluster was deployed using Strimzi.

.Procedure

. Edit the deployment file to configure connection details (if required). 
+ 
In `examples/bridge/kafka-bridge.yaml`, add or update the following properties as needed: 
+
* `spec.bootstrapServers` to specify the Kafka bootstrap address.
* `spec.authentication` to specify the authentication type as `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, or `custom`. See the link:{BookURLConfiguring}#type-KafkaBridgeSpec-schema-reference[`KafkaBridgeSpec` schema properties^] for configuration details.
* `spec.tls.trustedCertificates` to configure the TLS certificate. +
Use `[]` (an empty array) to trust the default Java CAs, or specify secrets containing trusted certificates. See the link:{BookURLConfiguring}#con-common-configuration-trusted-certificates-reference[`trustedCertificates` properties^] for configuration details.

. Deploy HTTP Bridge to your Kubernetes cluster:
+
[source,shell]
----
kubectl apply -f examples/bridge/kafka-bridge.yaml
----

. Check the status of the deployment:
+
[source,shell]
----
kubectl get pods -n <my_cluster_operator_namespace>
----
+
.Output shows the deployment name and readiness
[source,shell]
----
NAME                       READY  STATUS   RESTARTS
my-bridge-bridge-<pod_id>  1/1    Running  0
----
+
In this example, `my-bridge` is the name of the HTTP Bridge cluster.
A pod ID identifies each created pod.
By default, the deployment creates a single HTTP Bridge pod.
`READY` shows the number of ready versus expected replicas. 
The deployment is successful when the `STATUS` is `Running`.

[role="_additional-resources"]
.Additional resources

* xref:con-config-http-bridge-str[HTTP Bridge cluster configuration]
* link:{BookURLBridge}[Using the HTTP Bridge^]
