• Seth Hoenig's avatar
    client: enable configuring enable_tag_override for services · 6bfd86b1
    Seth Hoenig authored
    Consul provides a feature of Service Definitions where the tags
    associated with a service can be modified through the Catalog API,
    overriding the value(s) configured in the agent's service configuration.
    
    To enable this feature, the flag enable_tag_override must be configured
    in the service definition.
    
    Previously, Nomad did not allow configuring this flag, and thus the default
    value of false was used. Now, it is configurable.
    
    Because Nomad itself acts as a state machine around the the service definitions
    of the tasks it manages, it's worth describing what happens when this feature
    is enabled and why.
    
    Consider the basic case where there is no Nomad, and your service is provided
    to consul as a boring JSON file. The ultimate source of truth for the definition
    of that service is the file, and is stored in the agent. Later, Consul performs
    "anti-entropy" which synchronizes the Catalog (stored only the leaders). Then
    with enable_tag_override=true, t...
    6bfd86b1