Skip to content

Commit

Permalink
Adding 'dapr.io/sidecar-listen-addresses' annotation to middleware qu…
Browse files Browse the repository at this point in the history
…ickstart (#479)

* middleware: adding dapr.io/sidecar-listen-addresses annotation to echoapp deployment and note to readme

* changes after review; adding link to annotation details in the new note
  • Loading branch information
TenSt committed Oct 6, 2021
1 parent 38c3bcc commit 391299a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ kubectl apply -f deploy/pipeline.yaml

Next, you'll deploy the application and define an ingress rule that routes to the ```-dapr``` service that gets automatically created when you deploy your pod. In this case, all traffic is routed to the Dapr sidecar, which can reinforce various policies through middleware.

>**Note:** 'dapr.io/sidecar-listen-addresses' annotation is added to echoapp deployment to allow external connections. Be cautious of using it in a production environment. To read more on this annotation see [Dapr arguments and annotations for daprd, CLI, and Kubernetes](https://docs.dapr.io/reference/arguments-annotations-overview/)
1. Deploy the application and the ingress rule:

```bash
Expand Down
1 change: 1 addition & 0 deletions middleware/deploy/echoapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
dapr.io/app-id: "echoapp"
dapr.io/app-port: "3000"
dapr.io/config: "pipeline"
dapr.io/sidecar-listen-addresses: "0.0.0.0"
spec:
containers:
- name: echo
Expand Down

0 comments on commit 391299a

Please sign in to comment.