Pulsar

关于Pulsar pubsub组件的详细文档

配置

要设置Pulsar pubsub,请创建一个pubsub.pulsar类型的组件。 See this guide on how to create and apply a pubsub configuration.

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: pulsar-pubsub
  5. namespace: default
  6. spec:
  7. type: pubsub.pulsar
  8. version: v1
  9. metadata:
  10. - name: host
  11. value: "localhost:6650"
  12. - name: enableTLS
  13. value: "false"

元数据字段规范

字段必填详情Example
hostYPulsar broker. 地址, 默认值是 “localhost:6650”“localhost:6650”
enableTLSN启用TLS 默认值为 “false”“true”, “false”

创建 Pulsar 实例

  1. docker run -it \
  2. -p 6650:6650 \
  3. -p 8080:8080 \
  4. --mount source=pulsardata,target=/pulsar/data \
  5. --mount source=pulsarconf,target=/pulsar/conf \
  6. apachepulsar/pulsar:2.5.1 \
  7. bin/pulsar standalone

请参考以下Helm chart文档。

相关链接