Component schema
Tag | Details | Example use case |
---|
{uuid} | Randomly generated UUIDv4 | When you need a unique identifier in self-hosted mode; for example, multiple application instances consuming a |
{podName} | Name of the pod containing the Dapr sidecar | Use to have a persisted behavior, where the ConsumerID does not change on restart when using StatefulSets in Kubernetes |
{namespace} | Namespace where the Dapr sidecar resides combined with its appId | Using a shared when multiple application instances consume a Kafka topic in Kubernetes |
{appID} | The configured appID of the resource containing the Dapr sidecar | Having a shared clientId when multiple application instances consumer a Kafka topic in self-hosted mode |
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
spec:
version: v1
- name: consumerID
value: "{uuid}"
- name: url
value: "tcp://admin:public@localhost:1883"
- name: qos
value: 1
- name: retain
- name: cleanSession
value: "false"