updates from mark/mukundan

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-09-25 08:44:29 -04:00
parent dbb729cb1c
commit cf9fa335de
3 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,7 @@ description: Run multiple applications with one CLI command
--- ---
{{% alert title="Note" color="primary" %}} {{% alert title="Note" color="primary" %}}
Multi-App Run for **Kubernetes** is currently a preview feature only supported in Linux/MacOS. Multi-App Run for **Kubernetes** is currently a preview feature.
{{% /alert %}} {{% /alert %}}
Let's say you want to run several applications locally to test them together, similar to a production scenario. Multi-App Run allows you to start and stop a set of applications simultaneously, either: Let's say you want to run several applications locally to test them together, similar to a production scenario. Multi-App Run allows you to start and stop a set of applications simultaneously, either:

View File

@ -7,7 +7,7 @@ description: Unpack the Multi-App Run template file and its properties
--- ---
{{% alert title="Note" color="primary" %}} {{% alert title="Note" color="primary" %}}
Multi-App Run for **Kubernetes** is currently a preview feature only supported in Linux/MacOS. Multi-App Run for **Kubernetes** is currently a preview feature.
{{% /alert %}} {{% /alert %}}
The Multi-App Run template file is a YAML file that you can use to run multiple applications at once. In this guide, you'll learn how to: The Multi-App Run template file is a YAML file that you can use to run multiple applications at once. In this guide, you'll learn how to:

View File

@ -23,7 +23,6 @@ dapr run [flags] [command]
| Name | Environment Variable | Default | Description | | Name | Environment Variable | Default | Description |
| ------------------------------ | -------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | ------------------------------ | -------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `--kubernetes`, `-k` | | | Running Dapr on Kubernetes, and used for [Multi-App Run template files on Kubernetes]({{< ref multi-app-dapr-run >}}). |
| `--app-id`, `-a` | `APP_ID` | | The id for your application, used for service discovery. Cannot contain dots. | | `--app-id`, `-a` | `APP_ID` | | The id for your application, used for service discovery. Cannot contain dots. |
| `--app-max-concurrency` | | `unlimited` | The concurrency level of the application; default is unlimited | | `--app-max-concurrency` | | `unlimited` | The concurrency level of the application; default is unlimited |
| `--app-port`, `-p` | `APP_PORT` | | The port your application is listening on | | `--app-port`, `-p` | `APP_PORT` | | The port your application is listening on |
@ -51,6 +50,7 @@ dapr run [flags] [command]
| `--unix-domain-socket`, `-u` | | | Path to a unix domain socket dir mount. If specified, communication with the Dapr sidecar uses unix domain sockets for lower latency and greater throughput when compared to using TCP ports. Not available on Windows. | | `--unix-domain-socket`, `-u` | | | Path to a unix domain socket dir mount. If specified, communication with the Dapr sidecar uses unix domain sockets for lower latency and greater throughput when compared to using TCP ports. Not available on Windows. |
| `--dapr-http-max-request-size` | | `4` | Max size of the request body in MB. | | `--dapr-http-max-request-size` | | `4` | Max size of the request body in MB. |
| `--dapr-http-read-buffer-size` | | `4` | Max size of the HTTP read buffer in KB. This also limits the maximum size of HTTP headers. The default 4 KB | | `--dapr-http-read-buffer-size` | | `4` | Max size of the HTTP read buffer in KB. This also limits the maximum size of HTTP headers. The default 4 KB |
| `--kubernetes`, `-k` | | | Running Dapr on Kubernetes, and used for [Multi-App Run template files on Kubernetes]({{< ref multi-app-dapr-run >}}). |
| `--components-path`, `-d` | | Linux/Mac: `$HOME/.dapr/components` <br/>Windows: `%USERPROFILE%\.dapr\components` | **Deprecated** in favor of `--resources-path` | | `--components-path`, `-d` | | Linux/Mac: `$HOME/.dapr/components` <br/>Windows: `%USERPROFILE%\.dapr\components` | **Deprecated** in favor of `--resources-path` |
### Examples ### Examples
@ -82,4 +82,10 @@ dapr run --app-id myapp --app-port 3000 --enable-api-logging -- node myapp.js
# Pass multiple resource paths # Pass multiple resource paths
dapr run --app-id myapp --resources-path path1 --resources-path path2 dapr run --app-id myapp --resources-path path1 --resources-path path2
```
# Run the multi-app run template file
dapr run -f dapr.yaml
# Run the multi-app run template file on Kubernetes
dapr run -k -f dapr.yaml
```