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
+46-5Lines changed: 46 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The `spec.keyValues` has the following child properties. The `spec.keyValues.key
46
46
|selectors|The list of selectors for key-value filtering|false|object array|
47
47
|trimKeyPrefixes|The list of key prefixes to be trimmed|false|string array|
48
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|
49
+
|refresh|The settings for refreshing the key-values in ConfigMap|false|object|
50
50
51
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.
52
52
@@ -61,6 +61,7 @@ The `spec.keyValues.keyVaults` property has the following child properties.
61
61
|---|---|---|---|
62
62
|target|The destination of resolved Key Vault references in Kubernetes|true|object|
63
63
|auth|The authentication method to access Key Vaults|false|object|
64
+
|refresh|The settings for refreshing the data in Secret|false|object|
64
65
65
66
The `spec.keyValues.keyVaults.target` property has the following child property.
66
67
@@ -84,12 +85,18 @@ The authentication method of each *vault* can be specified with the following pr
84
85
|managedIdentityClientId|The client ID of a user-assigned managed identity used for authentication with a vault|false|string|
85
86
|servicePrincipalReference|The name of the Kubernetes Secret that contains the credentials of a service principal used for authentication with a vault|false|string|
86
87
88
+
The `spec.keyValues.keyVaults.refresh` property has the following child property.
89
+
90
+
|Name|Description|Required|Type|
91
+
|---|---|---|---|
92
+
|interval|The interval for Secret's refresh, must be greater than 1 minute|false|duration string|
93
+
87
94
The `spec.keyValues.refresh` property has the following child properties.
88
95
89
96
|Name|Description|Required|Type|
90
97
|---|---|---|---|
91
98
|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|
99
+
|interval|The interval for ConfigMap's refresh, default value is 30 seconds, must be greater than 1 second|true|duration string|
93
100
94
101
The `spec.keyValues.refresh.monitoring.keyValues` is an array of objects, which have the following child properties.
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.
267
+
Setting the `spec.keyValues.refresh` property enables dynamic configuration data refresh in ConfigMap by monitoring designated key-values. The provider periodically polls the key-values, if there is any value change, provider triggers ConfigMap refresh in accordance with the present data in Azure App Configuration.
260
268
261
-
The following sample instructs monitoring two key-values with 1 minute polling interval.
269
+
The following sample instructs monitoring two key-values with 1 minute refresh interval.
262
270
263
271
``` yaml
264
272
apiVersion: azconfig.io/v1beta1
@@ -283,4 +291,37 @@ spec:
283
291
label: common
284
292
- key: sentinelKey
285
293
label: development
294
+
```
295
+
296
+
#### Refresh Secret
297
+
Setting `spec.keyValues.keyVaults.refresh` property enables dynamic data refresh in Secret. Any refresh operation triggered by refresh interval will only update the value for a Key Vault secret with latest version. And refresh operation triggered by monitored key-values will make provider poll the key-values, ensuring consistency between Secret's data and Azure App Configuration.
298
+
299
+
The following sample instructs monitoring one key-value with different refresh interval for ConfigMap and Secret.
0 commit comments