You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/developing-applications/local-development/multi-app-dapr-run/multi-app-overview.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@ description: Run multiple applications with one CLI command
11
11
{{% /alert %}}
12
12
13
13
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:
14
-
- Locally/self-hosted with processes, or
14
+
- Locally/self-hosted with processes, or
15
15
- By building container images and deploying to a Kubernetes cluster
16
16
- You can use a local Kubernetes cluster (KiND) or one deploy to a Cloud (AKS, EKS, and GKE).
17
17
18
-
The Multi-App Run template file describes how to start multiple applications as if you had run many separate CLI `run` commands. By default, this template file is called `dapr.yaml`.
18
+
The Multi-App Run template file describes how to start multiple applications as if you had run many separate CLI `run` commands. By default, this template file is called `dapr.yaml`.
19
19
20
20
{{< tabs Self-hosted Kubernetes>}}
21
21
@@ -24,7 +24,7 @@ The Multi-App Run template file describes how to start multiple applications as
24
24
25
25
## Multi-App Run template file
26
26
27
-
When you execute `dapr run -f .`, it starts the multi-app template file (named `dapr.yaml`) present in the current directory to run all the applications.
27
+
When you execute `dapr run -f .`, it starts the multi-app template file (named `dapr.yaml`) present in the current directory to run all the applications.
28
28
29
29
You can name template file with preferred name other than the default. For example `dapr run -f ./<your-preferred-file-name>.yaml`.
30
30
@@ -41,7 +41,7 @@ apps:
41
41
- appID: emit-metrics
42
42
appDirPath: ../apps/emit-metrics/
43
43
daprHTTPPort: 3511
44
-
env:
44
+
env:
45
45
DAPR_HOST_ADD: localhost
46
46
command: ["go","run", "app.go"]
47
47
```
@@ -50,7 +50,7 @@ For a more in-depth example and explanation of the template properties, see [Mul
50
50
51
51
## Locations for resources and configuration files
52
52
53
-
You have options on where to place your applications' resources and configuration files when using Multi-App Run.
53
+
You have options on where to place your applications' resources and configuration files when using Multi-App Run.
54
54
55
55
### Point to one file location (with convention)
56
56
@@ -96,11 +96,11 @@ Watch [this video for an overview on Multi-App Run](https://youtu.be/s1p9MNl4VGo
96
96
97
97
## Multi-App Run template file
98
98
99
-
When you execute `dapr run -k -f .` or `dapr run -k -f dapr.yaml`, the applications defined in the `dapr.yaml` Multi-App Run template file starts in Kubernetes default namespace.
99
+
When you execute `dapr run -k -f .` or `dapr run -k -f dapr.yaml`, the applications defined in the `dapr.yaml` Multi-App Run template file starts in Kubernetes default namespace.
100
100
101
101
> **Note:** Currently, the Multi-App Run template can only start applications in the default Kubernetes namespace.
102
102
103
-
The necessary default service and deployment definitions for Kubernetes are generated within the `.dapr/deploy` folder for each app in the `dapr.yaml` template.
103
+
The necessary default service and deployment definitions for Kubernetes are generated within the `.dapr/deploy` folder for each app in the `dapr.yaml` template.
104
104
105
105
If the `createService` field is set to `true` in the `dapr.yaml` template for an app, then the `service.yaml` file is generated in the `.dapr/deploy` folder of the app.
> - If the `containerImage` field is not specified, `dapr run -k -f` produces an error.
135
+
> **Note:**
136
+
> - If the `containerImage` field is not specified, `dapr run -k -f` produces an error.
137
137
> - The `createService` field defines a basic service in Kubernetes (ClusterIP or LoadBalancer) that targets the `--app-port` specified in the template. If `createService` isn't specified, the application is not accessible from outside the cluster.
138
138
139
139
For a more in-depth example and explanation of the template properties, see [Multi-app template]({{< ref multi-app-template.md >}}).
0 commit comments