Skip to content

Commit 54c0abf

Browse files
committed
update
1 parent 20a256b commit 54c0abf

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

articles/azure-app-configuration/enable-dynamic-configuration-azure-kubernetes-service.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ If you use Azure Kubernetes Service (AKS), this tutorial shows you how to enable
2323

2424
Finish the quickstart: [Use Azure App Configuration in Azure Kubernetes Service](./quickstart-azure-kubernetes-service.md).
2525

26-
> [!TIP]
27-
> The Azure Cloud Shell is a free, interactive shell that you can use to run the command line instructions in this article. It has common Azure tools preinstalled, including the .NET Core SDK. If you're logged in to your Azure subscription, launch your [Azure Cloud Shell](https://shell.azure.com) from shell.azure.com. You can learn more about Azure Cloud Shell by [reading our documentation](../cloud-shell/overview.md).
28-
29-
3026
## Reload data from App Configuration
3127

3228
1. Open the *appConfigurationProvider.yaml* file located in the *Deployment* directory. Then, add the `refresh` section under the `configuration` property. It enables the Kubernetes provider to reload the entire configuration whenever it detects a change in any of the selected key-values (those starting with *Settings:* and having no label). For more information about monitoring configuration changes, see [Best practices for configuration refresh](./howto-best-practices.md#configuration-refresh).

articles/azure-app-configuration/howto-best-practices.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,23 @@ const appConfig = await load(endpoint, credential, {
8484
});
8585
```
8686

87+
#### [Kubernetes](#tab/kubernetes)
88+
```yaml
89+
apiVersion: azconfig.io/v1
90+
kind: AzureAppConfigurationProvider
91+
metadata:
92+
name: appconfigurationprovider-sample
93+
spec:
94+
endpoint: <your-app-configuration-store-endpoint>
95+
target:
96+
configMapName: configmap-created-by-appconfig-provider
97+
configuration:
98+
selectors:
99+
- keyFilter: TestApp*
100+
refresh:
101+
enabled: true
102+
```
103+
87104
---
88105
89106
### Monitoring a sentinel key
@@ -118,6 +135,26 @@ const appConfig = await load(endpoint, credential, {
118135
});
119136
```
120137

138+
#### [Kubernetes](#tab/kubernetes)
139+
```yaml
140+
apiVersion: azconfig.io/v1
141+
kind: AzureAppConfigurationProvider
142+
metadata:
143+
name: appconfigurationprovider-sample
144+
spec:
145+
endpoint: <your-app-configuration-store-endpoint>
146+
target:
147+
configMapName: configmap-created-by-appconfig-provider
148+
configuration:
149+
selectors:
150+
- keyFilter: TestApp*
151+
refresh:
152+
enabled: true
153+
monitoring:
154+
keyValues:
155+
- key: SentinelKey
156+
```
157+
121158
---
122159
123160
Both approaches are available through App Configuration providers across supported languages and platforms.

articles/azure-app-configuration/reference-kubernetes-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ spec:
383383

384384
### Configuration refresh
385385

386-
When you make changes to your data in Azure App Configuration, you might want those changes to be refreshed automatically in your Kubernetes cluster. In the following sample, the Kubernetes provider checks Azure App Configuration for updates every minute. The associated ConfigMap and Secret are regenerated only when changes are detected.
386+
When you make changes to your data in Azure App Configuration, you might want those changes to be refreshed automatically in your Kubernetes cluster. In the following sample, the Kubernetes provider checks Azure App Configuration for updates every minute. The associated ConfigMap and Secret are regenerated only when changes are detected. For more information about monitoring configuration changes, see [Best practices for configuration refresh](./howto-best-practices.md#configuration-refresh).
387387

388388
``` yaml
389389
apiVersion: azconfig.io/v1

0 commit comments

Comments
 (0)