-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
# Dapr Components | ||
|
||
- `pubsub.yaml` - Default pub/sub component, included here for reference. No configuration required | ||
The application requires the follow Dapr components for operation: | ||
|
||
- `statestore.yaml` - Default state component, included here for reference. No configuration required | ||
- A state store component, with a name `statestore` (this is the default name and can be changed) | ||
- A pub/sub component, with a name `pubsub` (this is the default name and can be changed) | ||
|
||
- `orders-email.yaml` - **Optional** component for orders service. Uses SendGrid to email users when their order is received. Rename/copy the sample file removing .sample, and set your SendGrid API key. Then copy to your default dapr components dir, eg. `$HOME/.dapr/components` | ||
If running in Kubernetes use kubectl to apply this file to your cluster | ||
When working locally with Dapr these components with these names are deployed by default (i.e. when running `dapr init`), and backed by a Redis container, so no extra configuration or work is required. | ||
|
||
- `orders-report.yaml` - **Optional** component for orders service. Uses Azure storage to store data when an order is received. Rename/copy the sample file removing .sample, and set your storage account details & key. Then copy to your default dapr components dir, eg. `$HOME/.dapr/components` | ||
If running in Kubernetes use kubectl to apply this file to your cluster | ||
When deploying to Kubernetes the Redis state provider needs to stood up, Helm is an easy way to do this, see [deploy/readme.md](deploy/readme.md). The Dapr Store Helm chart then will install the relevant Dapr component definitions `statestore` and `pubsub` to use this Redis instance | ||
|
||
## Required Components | ||
|
||
- `pubsub.yaml` - Default pub/sub component of type **pubsub.redis**, included here for reference. No configuration required. | ||
|
||
- _Running locally_: This should exist by default in your dapr components dir, eg. $HOME/.dapr/components | ||
- _Running in Kubernetes_: The daprstore Helm chart should deploy this component for you | ||
|
||
- `statestore.yaml` - Default state component of type **state.redis**, included here for reference. No configuration required | ||
|
||
- _Running locally_: This should exist by default in your dapr components dir, eg. $HOME/.dapr/components | ||
- _Running in Kubernetes_: The daprstore Helm chart should deploy this component for you | ||
|
||
## Optional Components | ||
|
||
These components do not need to be deployed/installed in order for the application to run and function | ||
|
||
- `orders-email.yaml` - Component type: **bindings.twilio.sendgrid**. Used by the orders service. Uses SendGrid to email & notify users when their order is received. | ||
|
||
- _Running locally_: Rename/copy the sample file removing .sample, and set your SendGrid API key. Then copy to your default dapr components dir, eg. `$HOME/.dapr/components` | ||
- _Running in Kubernetes_: Use kubectl to apply this file to your cluster and the same namespace as your application | ||
|
||
- `orders-report.yaml` - Component type: **bindings.azure.blobstorage**. Used by the orders service. Uses Azure storage to store simple "order reports" as text files when an order is received. | ||
- _Running locally_: Rename/copy the sample file removing .sample, and set your storage account details & key. Then copy to your default dapr components dir, eg. `$HOME/.dapr/components` | ||
- _Running in Kubernetes_: Use kubectl to apply this file to your cluster and the same namespace as your application |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.