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/reference-kubernetes-provider.md
+65-3Lines changed: 65 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,12 @@ The following reference outlines the properties supported by the Azure App Confi
16
16
17
17
## Properties
18
18
19
-
An `AzureAppConfigurationProvider` resource has the following top-level child properties under the `spec`.
19
+
An `AzureAppConfigurationProvider` resource has the following top-level child properties under the `spec`. Either `endpoint` or `connectionStringReference` has to be specified.
20
20
21
21
|Name|Description|Required|Type|
22
22
|---|---|---|---|
23
-
|endpoint|The endpoint of Azure App Configuration, which you would like to retrieve the key-values from|true|string|
23
+
|endpoint|The endpoint of Azure App Configuration, which you would like to retrieve the key-values from|alternative|string|
24
+
|connectionStringReference|The name of the Kubernetes Secret that contains Azure App Configuration connection string|alternative|string|
24
25
|target|The destination of the retrieved key-values in Kubernetes|true|object|
25
26
|auth|The authentication method to access Azure App Configuration|false|object|
26
27
|keyValues|The settings for querying and processing key-values|false|object|
@@ -45,6 +46,7 @@ The `spec.keyValues` has the following child properties. The `spec.keyValues.key
45
46
|selectors|The list of selectors for key-value filtering|false|object array|
46
47
|trimKeyPrefixes|The list of key prefixes to be trimmed|false|string array|
47
48
|keyVaults|The settings for Key Vault references|conditional|object|
49
+
|refresh|The settings for refreshing the key-values in ConfigMap or Secret|false|object|
48
50
49
51
If the `spec.keyValues.selectors` property isn't set, all key-values with no label will be downloaded. It contains an array of *selector* objects, which have the following child properties.
50
52
@@ -53,7 +55,6 @@ If the `spec.keyValues.selectors` property isn't set, all key-values with no lab
53
55
|keyFilter|The key filter for querying key-values|true|string|
54
56
|labelFilter|The label filter for querying key-values|false|string|
55
57
56
-
57
58
The `spec.keyValues.keyVaults` property has the following child properties.
58
59
59
60
|Name|Description|Required|Type|
@@ -83,6 +84,20 @@ The authentication method of each *vault* can be specified with the following pr
83
84
|managedIdentityClientId|The client ID of a user-assigned managed identity used for authentication with a vault|false|string|
84
85
|servicePrincipalReference|The name of the Kubernetes Secret that contains the credentials of a service principal used for authentication with a vault|false|string|
85
86
87
+
The `spec.keyValues.refresh` property has the following child properties.
88
+
89
+
|Name|Description|Required|Type|
90
+
|---|---|---|---|
91
+
|monitoring|The key-values that are monitored by the provider, provider automatically refreshes the ConfigMap or Secret if value change in any designated key-value|true|object|
92
+
|interval|The interval for refreshing, default value is 30 seconds, must be greater than 1 second|false|duration string|
93
+
94
+
The `spec.keyValues.refresh.monitoring.keyValues` is an array of objects, which have the following child properties.
95
+
96
+
|Name|Description|Required|Type|
97
+
|---|---|---|---|
98
+
|key|The key of a key-value|true|string|
99
+
|label|The label of a key-value|false|string|
100
+
86
101
## Examples
87
102
88
103
### Authentication
@@ -144,6 +159,22 @@ The authentication method of each *vault* can be specified with the following pr
1. Create a Kubernetes Secret in the same namespace as the `AzureAppConfigurationProvider` resource and add Azure App Configuration connection string with key *azure_app_configuration_connection_string* in the Secret.
165
+
2. Set the `spec.connectionStringReference` property to the name of the Secret in the following sample `AzureAppConfigurationProvider` resource and deploy it to the Kubernetes cluster.
Setting the `spec.keyValues.refresh` property enables dynamic configuration data refresh in ConfigMap and Secret by monitoring designated key-values. The provider periodically polls the key-values, if there is any value change, provider triggers ConfigMap and Secret refresh in accordance with the present data in Azure App Configuration.
260
+
261
+
The following sample instructs monitoring two key-values with 1 minute polling interval.
0 commit comments