How-To: Enable preview features
Some features in Dapr are considered experimental when they are first released. These features require explicit opt-in in order to be used. The opt-in is specified in Dapr’s configuration.
Currently, preview features are enabled on a per application basis when running on Kubernetes. A global scope may be introduced in the future should there be a use case for it.
The section under the Configuration
spec contains the following properties:
Preview features are specified in the configuration. Here is an example of a full configuration that contains multiple features:
The default Dapr config is created when you run , and is located at:
- Windows:
%USERPROFILE%\.dapr\config.yaml
Alternately, you can update preview features on all apps run locally by specifying the flag in dapr run
and pointing to a separate Dapr config file:
This configuration component can then be referenced in any application by modifying the application’s configuration to reference that specific configuration component via the element. 例如: