Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consul/connect: dynamically select envoy sidecar at runtime #8945

Merged
merged 1 commit into from
Oct 13, 2020

Commits on Oct 13, 2020

  1. consul/connect: dynamically select envoy sidecar at runtime

    As newer versions of Consul are released, the minimum version of Envoy
    it supports as a sidecar proxy also gets bumped. Starting with the upcoming
    Consul v1.9.X series, Envoy v1.11.X will no longer be supported. Current
    versions of Nomad hardcode a version of Envoy v1.11.2 to be used as the
    default implementation of Connect sidecar proxy.
    
    This PR introduces a change such that each Nomad Client will query its
    local Consul for a list of Envoy proxies that it supports (hashicorp/consul#8545)
    and then launch the Connect sidecar proxy task using the latest supported version
    of Envoy. If the `SupportedProxies` API component is not available from
    Consul, Nomad will fallback to the old version of Envoy supported by old
    versions of Consul.
    
    Setting the meta configuration option `meta.connect.sidecar_image` or
    setting the `connect.sidecar_task` stanza will take precedence as is
    the current behavior for sidecar proxies.
    
    Setting the meta configuration option `meta.connect.gateway_image`
    will take precedence as is the current behavior for connect gateways.
    
    `meta.connect.sidecar_image` and `meta.connect.gateway_image` may make
    use of the special `${NOMAD_envoy_version}` variable interpolation, which
    resolves to the newest version of Envoy supported by the Consul agent.
    
    Addresses #8585 #7665
    shoenig committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    bdeb73c View commit details
    Browse the repository at this point in the history