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
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,11 +97,11 @@ 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.
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.
101
101
102
102
|Name|Description|Required|Type|
103
103
|---|---|---|---|
104
-
|target|The destination of the retrieved secrets in Kubernetes.`Opaque`, `kubernetes.io/tls` type are supported.|true|object|
104
+
|target|The destination of the retrieved secrets in Kubernetes.|true|object|
105
105
|auth|The authentication method to access Key Vaults.|false|object|
106
106
|refresh|The settings for refreshing data from Key Vaults. If the property is absent, data from Key Vaults is not refreshed unless the corresponding Key Vault references are reloaded.|false|object|
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:
Then this key vault reference item will be generated as a `kubernetes.io/tls` type Secret naming with the key of it.
437
+
421
438
### Refresh of secrets from Key Vault
422
439
423
440
Refreshing secrets from Key Vaults usually requires reloading the corresponding Key Vault references from Azure App Configuration. However, with the `spec.secret.refresh` property, you can refresh the secrets from Key Vault independently. This is especially useful for ensuring that your workload automatically picks up any updated secrets from Key Vault during secret rotation. Note that to load the latest version of a secret, the Key Vault reference must not be a versioned secret.
0 commit comments