Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/demo_actor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export PYTHONPATH=`pwd`

```bash
$ cd examples/demo_actor
$ dapr run --app-id demo-actor --app-port 3000 -- uvicorn --port 3000 demo_actor_service:app
$ dapr run --app-id demo-actor --app-port 3000 -- uvicorn --dapr-http-port 3000 demo_actor_service:app
...
== APP == Activate DemoActor actor!
== APP == 127.0.0.1 - - [01/Mar/2020 18:50:27] "POST /actors/DemoActor/1 HTTP/1.1" 200 -
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_actor/deploy/demo_actor_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
app: demoactor-client
annotations:
dapr.io/enabled: "true"
dapr.io/id: "demoactor-client"
dapr.io/app-id: "demoactor-client"
spec:
containers:
- name: demoactor-client
Expand Down
4 changes: 2 additions & 2 deletions examples/demo_actor/deploy/demo_actor_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
app: demoactor
annotations:
dapr.io/enabled: "true"
dapr.io/id: "demoactor"
dapr.io/port: "3000"
dapr.io/app-id: "demoactor"
dapr.io/app-port: "3000"
spec:
containers:
- name: demoactor
Expand Down
4 changes: 2 additions & 2 deletions examples/invoke-binding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ To run this example, the following code can be utilized:
docker-compose -f ./docker-compose-single-kafka.yml up -d

# 2. Start Receiver (expose gRPC server receiver on port 50051)
dapr run --app-id receiver --protocol grpc --app-port 50051 --components-path ./components python3 invoke-input-binding.py
dapr run --app-id receiver --app-protocol grpc --app-port 50051 --components-path ./components python3 invoke-input-binding.py

# 3. Start Publisher
dapr run --app-id publisher --protocol grpc --components-path ./components python3 invoke-output-binding.py
dapr run --app-id publisher --app-protocol grpc --components-path ./components python3 invoke-output-binding.py
```

## Cleanup
Expand Down
4 changes: 2 additions & 2 deletions examples/invoke-custom-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ To run this example, the following steps should be followed:
python -m grpc_tools.protoc --proto_path=./proto/ --python_out=./proto/ --grpc_python_out=./proto/ ./proto/response.proto

# 2. Start Receiver (expose gRPC server receiver on port 50051)
dapr run --app-id invoke-receiver --protocol grpc --app-port 50051 python3 invoke-receiver.py
dapr run --app-id invoke-receiver --app-protocol grpc --app-port 50051 python3 invoke-receiver.py

# 3. Start Caller
dapr run --app-id invoke-caller --protocol grpc python invoke-caller.py
dapr run --app-id invoke-caller --app-protocol grpc python invoke-caller.py
```
4 changes: 2 additions & 2 deletions examples/invoke-simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ To run this example, the following code can be utilized:

```bash
# 1. Start Receiver (expose gRPC server receiver on port 50051)
dapr run --app-id invoke-receiver --protocol grpc --app-port 50051 python3 invoke-receiver.py
dapr run --app-id invoke-receiver --app-protocol grpc --app-port 50051 python3 invoke-receiver.py

# 2. Start Caller
dapr run --app-id invoke-caller --protocol grpc python3 invoke-caller.py
dapr run --app-id invoke-caller --app-protocol grpc python3 invoke-caller.py
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
name: demo-grpc-client
annotations:
dapr.io/enabled: "true" # Do we inject a sidecar into this pod?
dapr.io/id: "id-demo-grpc-client" # Unique ID or Name for Dapr APP (so we can communicate with it)
dapr.io/protocol: "grpc"
dapr.io/app-id: "id-demo-grpc-client" # Unique ID or Name for Dapr APP (so we can communicate with it)
dapr.io/app-protocol: "grpc"
spec:
containers:
- name: c-demo-grpc-client # Name of our container, e.g. `kubectl logs -c c-rw-...`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ spec:
app: p-demo-grpc-server # pod-roadwork-...
annotations:
dapr.io/enabled: "true" # Do we inject a sidecar to this deployment?
dapr.io/id: "id-demo-grpc-server" # Unique ID or Name for Dapr App (so we can communicate with it)
dapr.io/protocol: "grpc"
dapr.io/port: "50050"
dapr.io/app-id: "id-demo-grpc-server" # Unique ID or Name for Dapr App (so we can communicate with it)
dapr.io/app-protocol: "grpc"
dapr.io/app-port: "50050"
spec:
containers:
- name: c-demo-grpc-server # Name of our container, e.g. `kubectl logs -c c-rw-...`
Expand Down
2 changes: 1 addition & 1 deletion examples/kubernetes/invoke-simple/Server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
logging.basicConfig(level=logging.INFO, format='%(message)s')
logger = logging.getLogger(__name__)

APP_PORT_GRPC = os.getenv('APP_GRPC_PORT', 50050) # Note: this we need to expose in .yaml through dapr.io/port
APP_PORT_GRPC = os.getenv('APP_GRPC_PORT', 50050) # Note: this we need to expose in .yaml through dapr.io/app-port
DAPR_PORT_HTTP = os.getenv('DAPR_HTTP_PORT', 3500)
DAPR_PORT_GRPC = os.getenv('DAPR_GRPC_PORT', 50001) # Note: currently 50001 is always default

Expand Down
4 changes: 2 additions & 2 deletions examples/pubsub-simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ To run this example, the following code can be utilized:

```bash
# 1. Start Subscriber (expose gRPC server receiver on port 50051)
dapr run --app-id python-subscriber --protocol grpc --app-port 50051 python3 subscriber.py
dapr run --app-id python-subscriber --app-protocol grpc --app-port 50051 python3 subscriber.py

# 2. Start Publisher
dapr run --app-id python-publisher --protocol grpc python3 publisher.py
dapr run --app-id python-publisher --app-protocol grpc python3 publisher.py
```
2 changes: 1 addition & 1 deletion examples/secret_store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It creates a dapr client and calls the `get_secret` method in the `DaprClient`.
To run this example, use the following command:

```bash
dapr run --app-id=secretsapp --protocol grpc --components-path components/ python3 example.py
dapr run --app-id=secretsapp --app-protocol grpc --components-path components/ python3 example.py
```

You should be able to see the following output:
Expand Down
2 changes: 1 addition & 1 deletion examples/state_store/example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

"""
dapr run --protocol grpc --grpc-port=50001 python example.py
dapr run --app-protocol grpc --dapr-grpc-port=50001 python example.py
"""

import grpc
Expand Down
2 changes: 1 addition & 1 deletion examples/state_store/state_store.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

"""
dapr run --protocol grpc --grpc-port=50001 python example.py
dapr run --app-protocol grpc --dapr-grpc-port=50001 python example.py
"""

from dapr.clients import DaprClient
Expand Down