> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamnative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure MQTT Protocol

StreamNative Private Cloud supports the MQTT protocol. By enabling the MQTT protocol in your existing StreamNative cluster, you can migrate your existing MQTT applications and services to StreamNative without modifying the code.

## Enable MQTT Protocol

To enable the MQTT protocol, update the `PulsarBroker` CR with the following configuration:

```yaml theme={null}
spec:
  config:
    protocolHandlers:
      mop:
        enabled: true
        proxyEnabled: true
```

**Configuration Fields:**

* `spec.config.protocolHandlers.mop.enabled`: Required. Set to `true` to enable the MQTT protocol.
* `spec.config.protocolHandlers.mop.proxyEnabled`: Optional. Set to `true` to enable the MQTT proxy for external access outside the Kubernetes cluster.

<Note title="Note">
  Alternatively, you can use Istio for external access. See [Deploy Pulsar with Istio](/private-cloud/v2/operate-private-cloud/deploy/deploy-pulsar-with-istio) for instructions.
</Note>

The operator will automatically restart the broker pods to apply the changes.
