March 2020
Intermediate to advanced
626 pages
14h 45m
English
A service catalog contains all available nodes and their services running in a cluster. The Consul agent registers the service definition details, availability, and health metrics using the catalog.
Service configuration definitions are enabled by setting the -config-file option for the Consul agent as either an HCL or JSON extension. Definitions can be updated through the agent, and dynamic service registrations are made through REST API calls.
The following example configuration is a service definition that highlights high-level fields:
{ "service": { "id": "redisuniquevalue", "name": "redis", "tags": ["primary"], "address": "", "meta": { "meta": "for my service" }, "port": 8000, "enable_tag_override": ...Read now
Unlock full access