You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
TL;DR Add a new flag to weave proxy --hostname-from-label which specifies a label key from which to extract the container's hostname.
We already added --hostname-match and --hostname-replacement to the proxy, allowing to derive hostnames from transformations of container names (see #1126).
For ECS this is not enough since the original specified container names are mangled destructively, not allowing to retrieve the original name at spawning time.
However, I just found out that ECS adds a label, com.amazonaws.ecs.container-name, to every container with the original container name.
We can add a new flag to weave proxy, --hostname-from-label to specifiy a label key from which to extract the container's hostname.
The text was updated successfully, but these errors were encountered:
TL;DR Add a new flag to weave proxy
--hostname-from-label
which specifies a label key from which to extract the container's hostname.We already added
--hostname-match
and--hostname-replacement
to the proxy, allowing to derive hostnames from transformations of container names (see #1126).For ECS this is not enough since the original specified container names are mangled destructively, not allowing to retrieve the original name at spawning time.
However, I just found out that ECS adds a label,
com.amazonaws.ecs.container-name
, to every container with the original container name.We can add a new flag to weave proxy,
--hostname-from-label
to specifiy a label key from which to extract the container's hostname.The text was updated successfully, but these errors were encountered: