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
Azure App Configuration Kubernetes provider will automatically discover replicas and attempt to connect to them when it fails to connect to user-provided endpoint. Replica auto-discovery is enabled by default and can be disabled by setting `replicaDiscoveryEnabled` to `false`.
170
-
171
-
> [!NOTE]
172
-
> The failover support is available if you use version **1.3.0** or later of Azure App Configuration Kubernetes Provider.
173
-
174
167
---
175
168
176
169
The failover may occur if the App Configuration provider observes the following conditions.
@@ -186,6 +179,8 @@ You can specify one or more endpoints of a geo-replication-enabled App Configura
186
179
187
180
The automatically discovered replicas will be selected and used randomly. If you have a preference for specific replicas, you can explicitly specify their endpoints. This feature is enabled by default, but you can refer to the following sample code to disable it.
188
181
182
+
### [.NET](#tab/dotnet)
183
+
189
184
Edit the call to the `AddAzureAppConfiguration` method, which is often found in the `program.cs` file of your application.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/reference-kubernetes-provider.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,9 +78,9 @@ If the `spec.configuration.selectors` property isn't set, all key-values with no
78
78
79
79
|Name|Description|Required|Type|
80
80
|---|---|---|---|
81
-
|keyFilter|The key filter for querying key-values.|false|string|
81
+
|keyFilter|The key filter for querying key-values.|alternative|string|
82
82
|labelFilter|The label filter for querying key-values.|false|string|
83
-
|snapshotName|The snapshot for querying its contained key-values.|false|string|
83
+
|snapshotName|The snapshot for querying its contained key-values.|alternative|string|
84
84
85
85
The `spec.configuration.refresh` property has the following child properties.
86
86
@@ -97,7 +97,7 @@ The `spec.configuration.refresh.monitoring.keyValues` is an array of objects, wh
97
97
|key|The key of a key-value.|true|string|
98
98
|label|The label of a key-value.|false|string|
99
99
100
-
The `spec.secret` property has the following child properties. It is required if any Key Vault references are expected to be downloaded. `Opaque`, `kubernetes.io/tls`[Secret types](https://kubernetes.io/docs/concepts/configuration/secret/#secret-types) are supported.
100
+
The `spec.secret` property has the following child properties. It is required if any Key Vault references are expected to be downloaded. All selected secrets would be sourced into one `Opaque` type Secret by default. For generating other types of Secret, see [Key Vault references](#key-vault-references) for more details.
101
101
102
102
|Name|Description|Required|Type|
103
103
|---|---|---|---|
@@ -147,9 +147,9 @@ If the `spec.featureFlag.selectors` property isn't set, feature flags are not do
147
147
148
148
|Name|Description|Required|Type|
149
149
|---|---|---|---|
150
-
|keyFilter|The key filter for querying feature flags.|false|string|
150
+
|keyFilter|The key filter for querying feature flags.|alternative|string|
151
151
|labelFilter|The label filter for querying feature flags.|false|string|
152
-
|snapshotName|The snapshot for querying its contained feature flags.|false|string|
152
+
|snapshotName|The snapshot for querying its contained feature flags.|alternative|string|
153
153
154
154
The `spec.featureFlag.refresh` property has the following child properties.
155
155
@@ -331,6 +331,8 @@ spec:
331
331
332
332
Use the `configuration.selectors.snapshotName` property to specify a snapshot and its contained key-values will be downloaded.
333
333
334
+
#### [snapshot only](#tab/snapshotOnly)
335
+
334
336
The following example downloads key-values from specified snapshot.
335
337
336
338
``` yaml
@@ -347,6 +349,26 @@ spec:
347
349
- snapshotName: snapshot_app1
348
350
```
349
351
352
+
#### [snapshot with key/label filters](#tab/withfilters)
353
+
354
+
In following example, snapshot and key/label filters are used to retrieve key-values. It's important to note that the values of the last selector take precedence and override any overlapping keys from the previous selectors.
By default, all key vault reference items will be projected as key-value pairs into the specified target Secret, and the type of that target secret is `opaque`, which cannot be customized. Given that Kubernetes has [various types](https://kubernetes.io/docs/concepts/configuration/secret/#secret-types) of Secret besides `opaque`, Azure App Configuration Kubernetes Provider currently give compatibility for `kubernetes.io/tls` type.
422
-
If you want a key vault reference item to be projected as a secret of `kubernetes.io/tls` type, you need to tag that key vault reference item with a special label `".kubernetes.secret.type": "kubernetes.io/tls"` in Azure App Configuration, like this:
443
+
By default, all key vault reference items will be projected as key-value pairs into the specified target Secret, and the type of that target secret is `Opaque`, which cannot be customized. Given that Kubernetes has [various types](https://kubernetes.io/docs/concepts/configuration/secret/#secret-types) of Secret besides `Opaque`, Azure App Configuration Kubernetes Provider currently give compatibility for `kubernetes.io/tls` type. If you want a key vault reference item to be projected as a secret of `kubernetes.io/tls` type, you need to tag that key vault reference item with a special label `".kubernetes.secret.type": "kubernetes.io/tls"` in Azure App Configuration, like this:
0 commit comments