Using Consul with Flogo Enterprise
Below is a high-level workflow for using Consul with your Flogo app.
Before you beginYou must have access to Consul before following this procedure. This document assumes that you have set up Consul and know how Consul is used to store service configuration. For information on Consul, refer to the Consul documentation.
At a high level, to use Consul to override app properties in your app (properties that were set in
Flogo Enterprise), do the following:
- Procedure
- Export your app binary from Flogo Enterprise. Refer to Exporting and Importing an App for details on how to export the app.
- Configure key/value pairs in Consul for the app properties whose values you want to override. At runtime, the app fetches these values from the Consul and uses them to replace their default values that were set in the app.
Important: When setting up the Key in Consul, make sure that the Key name matches exactly with the corresponding app property name in the Application Properties dialog in Flogo Enterprise. If the property name does not match exactly, a warning message is displayed, and the app uses the default value for the property that you configured in Flogo Enterprise.
- Set the
FLOGO_APP_PROPS_CONSULenvironment variable to set the Consul server connection parameters. See Setting the Consul Connection Parameters for details.