Clarify annotation format (#2579)

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
This commit is contained in:
Shubham Sharma 2022-07-04 21:49:46 +05:30 committed by GitHub
parent dcc364a6e3
commit f11a20fc14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ You can set the following annotations in your deployment YAML:
1. **dapr.io/volume-mounts**: for read-only volume mounts
1. **dapr.io/volume-mounts-rw**: for read-write volume mounts
These annotations are comma separated pairs of `volume:path`. Make sure that the corresponding Volumes exist in the Pod spec.
These annotations are comma separated pairs of `volume-name:path/in/container`. Make sure that the corresponding Volumes exist in the Pod spec.
In the snippet below, `my-volume1` and `my-volume2` are available inside the sidecar container at `/tmp/sample1` and `/tmp/sample2` respectively, in read-only mode. `my-volume3` is available inside the sidecar container at `/tmp/sample3` in read-write mode.
```yaml
apiVersion: apps/v1