mirror of https://github.com/dapr/docs.git
add name resolution to config overview and schema
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
c6aca391c8
commit
a63d3287fe
|
@ -50,6 +50,7 @@ The following configuration settings can be applied to Dapr application sidecars
|
|||
- [Metrics](#metrics)
|
||||
- [Logging](#logging)
|
||||
- [Middleware](#middleware)
|
||||
- [Name resolution](#name-resolution)
|
||||
- [Scope secret store access](#scope-secret-store-access)
|
||||
- [Access Control allow lists for building block APIs](#access-control-allow-lists-for-building-block-apis)
|
||||
- [Access Control allow lists for service invocation API](#access-control-allow-lists-for-service-invocation-api)
|
||||
|
@ -189,6 +190,27 @@ The following table lists the properties for HTTP handlers:
|
|||
|
||||
See [Middleware pipelines]({{< ref "middleware.md" >}}) for more information
|
||||
|
||||
#### Name resolution
|
||||
|
||||
You can set name resolution within the Configuration YAML. Set the `spec.nameResolution.component` property to `"sqlite"`, then pass configuration options in the `spec.nameResolution.configuration` dictionary.
|
||||
|
||||
This is the basic example of a Configuration resource:
|
||||
|
||||
```yaml
|
||||
apiVersion: dapr.io/v1alpha1
|
||||
kind: Configuration
|
||||
metadata:
|
||||
name: appconfig
|
||||
spec:
|
||||
nameResolution:
|
||||
component: "sqlite"
|
||||
version: "v1"
|
||||
configuration:
|
||||
connectionString: "/home/user/.dapr/nr.db"
|
||||
```
|
||||
|
||||
See [the Name Resolution spec documentation]({{< ref supported-name-resolution >}}) to learn more about how to configure name resolution per component.
|
||||
|
||||
#### Scope secret store access
|
||||
|
||||
See the [Scoping secrets]({{< ref "secret-scope.md" >}}) guide for information and examples on how to scope secrets to an application.
|
||||
|
|
|
@ -46,6 +46,11 @@ spec:
|
|||
handlers:
|
||||
- name: <HANDLER-NAME>
|
||||
type: <HANDLER-TYPE>
|
||||
nameResolution:
|
||||
component: "sqlite"
|
||||
version: "v1"
|
||||
configuration:
|
||||
connectionString: "/home/user/.dapr/nr.db"
|
||||
secrets:
|
||||
scopes:
|
||||
- storeName: <NAME-OF-SCOPED-STORE>
|
||||
|
|
Loading…
Reference in New Issue