mirror of https://github.com/dapr/docs.git
Merge branch 'v1.13' into issue_4059
This commit is contained in:
commit
dba462f283
|
@ -41,7 +41,7 @@ Applications can also use the secrets API to access secrets from a Kubernetes se
|
||||||
- The Helm defaults, or
|
- The Helm defaults, or
|
||||||
- `dapr init -k`
|
- `dapr init -k`
|
||||||
|
|
||||||
If you are using another secret store, you can disable (not configure) the Dapr Kubernetes secret store by setting `disable-builtin-k8s-secret-store` to `true` through the Helm settings. The default is `false`.
|
If you are using another secret store, you can disable (not configure) the Dapr Kubernetes secret store by adding the annotation `dapr.io/disable-builtin-k8s-secret-store: "true"` to the deployment.yaml file. The default is `false`.
|
||||||
|
|
||||||
In the example below, the application retrieves the same secret "mysecret" from a Kubernetes secret store.
|
In the example below, the application retrieves the same secret "mysecret" from a Kubernetes secret store.
|
||||||
|
|
||||||
|
@ -86,4 +86,4 @@ Want to skip the quickstarts? Not a problem. You can try out the secret manageme
|
||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
- Learn [how to use secret scoping]({{< ref secrets-scopes.md >}}).
|
- Learn [how to use secret scoping]({{< ref secrets-scopes.md >}}).
|
||||||
- Read the [secrets API reference doc]({{< ref secrets_api.md >}}).
|
- Read the [secrets API reference doc]({{< ref secrets_api.md >}}).
|
||||||
|
|
|
@ -49,7 +49,7 @@ The CustomResourceDefinition "configurations.dapr.io" is invalid: spec.preserveU
|
||||||
1. Run the following command to upgrade the `CustomResourceDefinition` to a compatible version:
|
1. Run the following command to upgrade the `CustomResourceDefinition` to a compatible version:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/5a15b3e0f093d2d0938b12f144c7047474a290fe/charts/dapr/crds/configuration.yaml
|
kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/release-{{% dapr-latest-version short="true" %}}/charts/dapr/crds/configuration.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Proceed with the `dapr upgrade --runtime-version {{% dapr-latest-version long="true" %}} -k` command.
|
1. Proceed with the `dapr upgrade --runtime-version {{% dapr-latest-version long="true" %}} -k` command.
|
||||||
|
|
|
@ -207,9 +207,15 @@ For example, if installing using the example above, the RabbitMQ server client a
|
||||||
|
|
||||||
## Use topic exchange to route messages
|
## Use topic exchange to route messages
|
||||||
|
|
||||||
Setting `exchangeKind` to `"topic"` uses the topic exchanges, which are commonly used for the multicast routing of messages.
|
Setting `exchangeKind` to `"topic"` uses the topic exchanges, which are commonly used for the multicast routing of messages. In order to route messages using topic exchange, you must set the following metadata:
|
||||||
Messages with a `routing key` will be routed to one or many queues based on the `routing key` defined in the metadata when subscribing.
|
|
||||||
The routing key is defined by the `routingKey` metadata. For example, if an app is configured with a routing key `keyA`:
|
- **`routingKey`:**
|
||||||
|
Messages with a routing key are routed to one or many queues based on the `routing key` defined in the metadata when subscribing.
|
||||||
|
|
||||||
|
- **`queueName`:**
|
||||||
|
If you don't set the `queueName`, only one queue is created, and all routing keys will route to that queue. This means all subscribers will bind to that queue, which won't give the desired results.
|
||||||
|
|
||||||
|
For example, if an app is configured with a routing key `keyA` and `queueName` of `queue-A`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: dapr.io/v2alpha1
|
apiVersion: dapr.io/v2alpha1
|
||||||
|
@ -223,6 +229,7 @@ spec:
|
||||||
pubsubname: pubsub
|
pubsubname: pubsub
|
||||||
metadata:
|
metadata:
|
||||||
routingKey: keyA
|
routingKey: keyA
|
||||||
|
queueName: queue-A
|
||||||
```
|
```
|
||||||
|
|
||||||
It will receive messages with routing key `keyA`, and messages with other routing keys are not received.
|
It will receive messages with routing key `keyA`, and messages with other routing keys are not received.
|
||||||
|
|
Loading…
Reference in New Issue