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
> - If the `containerImage` field is not specified, `dapr run -k -f` produces an error.
138
+
> - The containerImagePullPolicy indicates that a new container image is always downloaded for this app.
137
139
> - 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
140
139
141
For a more in-depth example and explanation of the template properties, see [Multi-app template]({{< ref multi-app-template.md >}}).
@@ -169,4 +171,4 @@ Watch [this video for an overview on Multi-App Run in Kubernetes](https://youtu.
169
171
170
172
- [Learn the Multi-App Run template file structure and its properties]({{< ref multi-app-template.md >}})
171
173
- [Try out the self-hosted Multi-App Run template with the Service Invocation quickstart]({{< ref serviceinvocation-quickstart.md >}})
172
-
- [Try out the Kubernetes Multi-App Run template with the `hello-kubernetes` tutorial](https://github.com/dapr/quickstarts/tree/master/tutorials/hello-kubernetes)
174
+
- [Try out the Kubernetes Multi-App Run template with the `hello-kubernetes` tutorial](https://github.com/dapr/quickstarts/tree/master/tutorials/hello-kubernetes)
Copy file name to clipboardexpand all lines: daprdocs/content/en/developing-applications/local-development/multi-app-dapr-run/multi-app-template.md
+34-33
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,7 @@ apps:
203
203
appLogDestination: file # (optional), can be file, console or fileAndConsole. default is fileAndConsole.
204
204
daprdLogDestination: file # (optional), can be file, console or fileAndConsole. default is file.
205
205
containerImage: ghcr.io/dapr/samples/hello-k8s-node:latest # (optional) URI of the container image to be used when deploying to Kubernetes dev/test environment.
206
+
containerImagePullPolicy: IfNotPresent # (optional), the container image is downloaded if one is not present locally, otherwise the local one is used.
206
207
createService: true # (optional) Create a Kubernetes service for the application when deploying to dev/test environment.
207
208
- appID: backend # optional
208
209
appDirPath: .dapr/backend/ # REQUIRED
@@ -285,39 +286,39 @@ The properties for the Multi-App Run template align with the `dapr run -k` CLI f
| `appDirPath` | Y | Path to the your application code | `./webapp/`, `./backend/` |
291
-
| `appID` | N | Application's app ID. If not provided, will be derived from `appDirPath` | `webapp`, `backend` |
292
-
| `appChannelAddress` | N | The network address the application listens on. Can be left to the default value by convention. | `127.0.0.1` | `localhost` |
293
-
| `appProtocol` | N | The protocol Dapr uses to talk to the application. | `http`, `grpc` |
294
-
| `appPort` | N | The port your application is listening on | `8080`, `3000` |
295
-
| `daprHTTPPort` | N | Dapr HTTP port | |
296
-
| `daprGRPCPort` | N | Dapr GRPC port | |
297
-
| `daprInternalGRPCPort` | N | gRPC port for the Dapr Internal API to listen on; used when parsing the value from a local DNS component | |
298
-
| `metricsPort` | N | The port that Dapr sends its metrics information to | |
299
-
| `unixDomainSocket` | N | 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. | `/tmp/test-socket` |
300
-
| `profilePort` | N | The port for the profile server to listen on | |
301
-
| `enableProfiling` | N | Enable profiling via an HTTP endpoint | |
302
-
| `apiListenAddresses` | N | Dapr API listen addresses | |
303
-
| `logLevel` | N | The log verbosity. | |
304
-
| `appMaxConcurrency` | N | The concurrency level of the application; default is unlimited | |
305
-
| `placementHostAddress` | N | | |
306
-
| `appSSL` | N | Enable https when Dapr invokes the application | |
307
-
| `daprHTTPMaxRequestSize` | N | Max size of the request body in MB. | |
308
-
| `daprHTTPReadBufferSize` | N | Max size of the HTTP read buffer in KB. This also limits the maximum size of HTTP headers. The default 4 KB | |
309
-
| `enableAppHealthCheck` | N | Enable the app health check on the application | `true`, `false` |
310
-
| `appHealthCheckPath` | N | Path to the health check file | `/healthz` |
311
-
| `appHealthProbeInterval` | N | Interval to probe for the health of the app in seconds
312
-
| |
313
-
| `appHealthProbeTimeout` | N | Timeout for app health probes in milliseconds | |
314
-
| `appHealthThreshold` | N | Number of consecutive failures for the app to be considered unhealthy | |
315
-
| `enableApiLogging` | N | Enable the logging of all API calls from application to Dapr | |
316
-
| `env` | N | Map to environment variable; environment variables applied per application will overwrite environment variables shared across applications | `DEBUG`, `DAPR_HOST_ADD` |
317
-
| `appLogDestination` | N | Log destination for outputting app logs; Its value can be file, console or fileAndConsole. Default is fileAndConsole | `file`, `console`, `fileAndConsole` |
318
-
| `daprdLogDestination` | N | Log destination for outputting daprd logs; Its value can be file, console or fileAndConsole. Default is file | `file`, `console`, `fileAndConsole` |
319
-
| `containerImage`| N | URI of the container image to be used when deploying to Kubernetes dev/test environment. | `ghcr.io/dapr/samples/hello-k8s-python:latest`
320
-
| `createService`| N | Create a Kubernetes service for the application when deploying to dev/test environment. | `true`, `false` |
| `appDirPath` | Y | Path to the your application code | `./webapp/`, `./backend/` |
292
+
| `appID` | N | Application's app ID. If not provided, will be derived from `appDirPath` | `webapp`, `backend` |
293
+
| `appChannelAddress` | N | The network address the application listens on. Can be left to the default value by convention. | `127.0.0`, `localhost` |
294
+
| `appProtocol` | N | The protocol Dapr uses to talk to the application. | `http`, `grpc` |
295
+
| `appPort` | N | The port your application is listening on | `8080`, `3000` |
296
+
| `daprHTTPPort` | N | Dapr HTTP port | |
297
+
| `daprGRPCPort` | N | Dapr GRPC port | |
298
+
| `daprInternalGRPCPort` | N | gRPC port for the Dapr Internal API to listen on; used when parsing the value from a local DNS component | |
299
+
| `metricsPort` | N | The port that Dapr sends its metrics information to | |
300
+
| `unixDomainSocket` | N | 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. | `/tmp/test-socket` |
301
+
| `profilePort` | N | The port for the profile server to listen on | |
302
+
| `enableProfiling` | N | Enable profiling via an HTTP endpoint | |
303
+
| `apiListenAddresses` | N | Dapr API listen addresses | |
304
+
| `logLevel` | N | The log verbosity. | |
305
+
| `appMaxConcurrency` | N | The concurrency level of the application; default is unlimited | |
306
+
| `placementHostAddress` | N | | |
307
+
| `appSSL` | N | Enable https when Dapr invokes the application | |
308
+
| `daprHTTPMaxRequestSize` | N | Max size of the request body in MB. | |
309
+
| `daprHTTPReadBufferSize` | N | Max size of the HTTP read buffer in KB. This also limits the maximum size of HTTP headers. The default 4 KB | |
310
+
| `enableAppHealthCheck` | N | Enable the app health check on the application | `true`, `false` |
311
+
| `appHealthCheckPath` | N | Path to the health check file | `/healthz` |
312
+
| `appHealthProbeInterval` | N | Interval to probe for the health of the app in seconds | |
313
+
| `appHealthProbeTimeout` | N | Timeout for app health probes in milliseconds | |
314
+
| `appHealthThreshold` | N | Number of consecutive failures for the app to be considered unhealthy | |
315
+
| `enableApiLogging` | N | Enable the logging of all API calls from application to Dapr | |
316
+
| `env` | N | Map to environment variable; environment variables applied per application will overwrite environment variables shared across applications | `DEBUG`, `DAPR_HOST_ADD` |
317
+
| `appLogDestination` |N| Log destination for outputting app logs; Its value can be file, console or fileAndConsole. Default is fileAndConsole | `file`, `console`, `fileAndConsole` |
318
+
| `daprdLogDestination` | N | Log destination for outputting daprd logs; Its value can be file, console or fileAndConsole. Default is file | `file`, `console`, `fileAndConsole` |
319
+
| `containerImage` |N | URI of the container image to be used when deploying to Kubernetes dev/test environment. | `ghcr.io/dapr/samples/hello-k8s-python:latest` |
320
+
| `containerImagePullPolicy` | N | The container image pull policy (default to `Always`). | `Always`, `IfNotPresent`, `Never` |
321
+
| `createService`| N | Create a Kubernetes service for the application when deploying to dev/test environment. | `true`, `false` |
0 commit comments