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.
Description
During service registration inject the current consul-dataplane and consul-ecs binaries version into
ServiceMetadadaUse 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.
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.