Consul Configuration
Use the
consul kv import
command to import the initial configuration information to instance of a running Consul cluster.
Before you begin Make sure the Consul client is installed on the system where you will run the import command.
- Procedure
- Copy the initial Consul configuration file
consul_initial_configuration.json
from the folder /samples/initial_configuration. - Run the
consul import kv command
to import all the initial configuration to the running consul cluster.Include the service URL endpoint of the Consul cluster in the command. - Once all the configuration is imported, values for most of the keys will need to be updated.
For example, "tenantsList" key located at config/application/tenants/default/tenantsList/ needs to be updated to write names of the tenants in the system, or "minioAccessKey" located at config/application/tenants/default/minioAccessKey needs to be updated to provide correct MinIO access key, etc.
Example Import