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: articles/azure-app-configuration/quickstart-azure-kubernetes-service.md
+55-8Lines changed: 55 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,22 +226,57 @@ Add following key-values to the App Configuration store and leave **Label** and
226
226
|Settings:Message|*Hello from Azure App Configuration*|
227
227
228
228
### Set up the App Configuration Kubernetes Provider
229
+
229
230
1. Run the following command to get access credentials for your AKS cluster. Replace the value of the `name` and `resource-group` parameters with your AKS instance:
230
231
231
232
```console
232
233
az aks get-credentials --name <your-aks-instance-name> --resource-group <your-aks-resource-group>
233
234
```
234
235
235
-
1. Install Azure App Configuration Kubernetes Provider to your AKS cluster using `helm`:
236
+
2. Install Azure App Configuration Kubernetes Provider to your AKS cluster:
236
237
238
+
#### [helm](#tab/helm)
239
+
240
+
Run the following command to install the helm chart.
Run the following commands to install the Azure App Configuration Kubernetes Provider as the [AKS extension](../aks/azure-app-configuration.md).
252
+
253
+
254
+
1. Install the `k8s-extension` Azure CLI extension:
255
+
256
+
```azurecli
257
+
az extension add --name k8s-extension
258
+
```
259
+
260
+
2. Register the provider using the [az provider register](/cli/azure/provider#az-provider-register):
261
+
262
+
```azurecli
263
+
az provider register --namespace Microsoft.KubernetesConfiguration
264
+
```
265
+
266
+
3. Install the Azure App Configuration AKS extension:
267
+
268
+
```azurecli
269
+
az k8s-extension create --cluster-type managedClusters \
270
+
--cluster-name <your-aks-instance-name> \
271
+
--resource-group <your-aks-resource-group> \
272
+
--name appconfigurationkubernetesprovider \
273
+
--extension-type Microsoft.AppConfiguration \
274
+
--release-train preview
242
275
```
243
276
244
-
1. Add an *appConfigurationProvider.yaml* file to the *Deployment* directory with the following content to create an `AzureAppConfigurationProvider` resource. `AzureAppConfigurationProvider` is a custom resource that defines what data to download from an Azure App Configuration store and creates a ConfigMap.
277
+
---
278
+
279
+
3. Add an *appConfigurationProvider.yaml* file to the *Deployment* directory with the following content to create an `AzureAppConfigurationProvider` resource. `AzureAppConfigurationProvider` is a custom resource that defines what data to download from an Azure App Configuration store and creates a ConfigMap.
245
280
246
281
```yaml
247
282
apiVersion: azconfig.io/v1
@@ -269,7 +304,7 @@ Add following key-values to the App Configuration store and leave **Label** and
269
304
> - 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.
270
305
> - The ConfigMap will be deleted if the App Configuration Kubernetes Provider is uninstalled.
271
306
272
-
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.
307
+
4. 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.
273
308
274
309
```yaml
275
310
apiVersion: apps/v1
@@ -302,13 +337,13 @@ Add following key-values to the App Configuration store and leave **Label** and
302
337
name: configmap-created-by-appconfig-provider
303
338
```
304
339
305
-
3. Run the following command to deploy the changes. Replace the namespace if you are using your existing AKS application.
340
+
5. Run the following command to deploy the changes. Replace the namespace if you are using your existing AKS application.
306
341
307
342
```console
308
343
kubectl apply -f ./Deployment -n appconfig-demo
309
344
```
310
345
311
-
4. Refresh the browser. The page shows updated content.
346
+
6. Refresh the browser. The page shows updated content.
312
347
313
348

314
349
@@ -352,11 +387,23 @@ Use the logs for further troubleshooting. For example, if you see requests to yo
352
387
## Clean up resources
353
388
354
389
Uninstall the App Configuration Kubernetes Provider from your AKS cluster if you want to keep the AKS cluster.
0 commit comments