If your Pulsar client directly communicates with your Pulsar cluster through the Pulsar broker, you only need to enable the WebSocket service on the Pulsar broker.To enable the WebSocket service, you can set
broker.configData.webSocketServiceEnabled
to true
in the values.yaml
YAML file as follows and use the helm upgrade
command to update the resource.-
Enable the WebSocket service.
This example shows how to enable the WebSocket service on the Pulsar broker without enabling TLS encryption. If you do not enable TLS encryption, your client will connect to a Pulsar cluster through the WebSocket protocol and the port
9090
.This example shows how to enable the WebSocket service on the Pulsar broker with TLS encryption enabled. If you do enable TLS encryption, your client will connect to a Pulsar cluster through the WebSocket Secure (WSS) protocol and the port9443
.- [1]
tls.enabled
: enable TLS encryption. For details, see enable TLS encryption on StreamNative Platform components. - [2]
tls.broker.enabled
: enable TLS encryption on the Pulsar broker. For details, see enable TLS encryption on StreamNative Platform components. - [3]
broker.configData.webSocketServiceEnabled
: enable the WebSocket service on the Pulsar broker.
- [1]
-
Apply the new configuration.