Skip to content

Commit e33c51a

Browse files
committed
fix mount path
1 parent 8d431b2 commit e33c51a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-app-configuration/quickstart-azure-kubernetes-service.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ In this section, you will create a simple ASP.NET Core web application running i
6767
</div>
6868
```
6969
70-
1. Create a file named *mysettings.json* at the root of your project directory, and enter the following content.
70+
1. Create a *config* directory in the root of your project and add a *mysettings.json* file to it with the following content.
7171
7272
```json
7373
{
@@ -85,7 +85,7 @@ In this section, you will create a simple ASP.NET Core web application running i
8585
// ... ...
8686
8787
// Add a JSON configuration source
88-
builder.Configuration.AddJsonFile("mysettings.json");
88+
builder.Configuration.AddJsonFile("config/mysettings.json");
8989
9090
var app = builder.Build();
9191
@@ -260,7 +260,7 @@ Add following key-values to the App Configuration store and leave **Label** and
260260
> - The ConfigMap will be reset based on the present data in your App Configuration store if it's deleted or modified by any other means.
261261
> - The ConfigMap will be deleted if the App Configuration Kubernetes Provider is uninstalled.
262262
263-
2. Update the *deployment.yaml* file in the *Deployment* directory to use the ConfigMap `configmap-created-by-appconfig-provider` as a mounted data volume. It is important to ensure that the `volumeMounts.mountPath` matches the `WORKDIR` specified in your *Dockerfile*.
263+
2. Update the *deployment.yaml* file in the *Deployment* directory to use the ConfigMap `configmap-created-by-appconfig-provider` as a mounted data volume. It is important to ensure that the `volumeMounts.mountPath` matches the `WORKDIR` specified in your *Dockerfile* and the *config* directory created before.
264264
265265
```yaml
266266
apiVersion: apps/v1
@@ -286,7 +286,7 @@ Add following key-values to the App Configuration store and leave **Label** and
286286
- containerPort: 80
287287
volumeMounts:
288288
- name: config-volume
289-
mountPath: /app
289+
mountPath: /app/config
290290
volumes:
291291
- name: config-volume
292292
configMap:

0 commit comments

Comments
 (0)