Skip to content

Inject consul-dataplane and consul-ecs binaries version into ServiceMetadata #339

Description

@v-rosa

Description

During service registration inject the current consul-dataplane and consul-ecs binaries version into ServiceMetadada

Use Cases

During LTS upgrades, sometimes it's needed to update the data-plane to a version supported by current and the next LTS version. Before actually upgrade the control-plane we need to ensure all existing mesh services are using the expected data-plane version, currently this information is not available via Consul API.

curl http://localhost:8500/v1/catalog/service/foobar-sidecar-proxy | jq
...
  "ServiceMeta": {
      "source": "consul-ecs",
      "task-arn": "arn:aws:ecs:us-east-1:1111111:task/<cluster>/<task-id>",
      "task-id": "<task-id>"
    },
...

Alternative Solutions

The workaround is to describe the latest task definitions for all services and search for the data-plane version defined in container definitions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions