I was trying to make the correct template uri for ...
# ask-the-community
a
I was trying to make the correct template uri for CloudWatch logs, but it appears that
{{.hostname}}
is not propagated from the pods correctly. Were anybody looking into that issue? https://github.com/flyteorg/flyte/issues/2635 https://github.com/flyteorg/flyteplugins/pull/293
k
Cc @Haytham Abuelfutuh as he commented on the PR
It seems the work is needed. How about a contribution 😍
a
I think the issue is quite complicate and requires knowledge of Flyte internals and how it interacts with k8s and EKS. From what I see the pods which Flyte create have local hostname, but what container insights log path expects is the node name, which is not available on the Flyte pod. I imagine that there should be another template parameter which will include node name or
--hostname-override
could be passed to the Flyte pods on creation to set it to the node hostname instead.
I think this issue comes from Flyte expecting FluentD syntax instead of FluentBit, but both should be supported
h
Added a comment here: https://github.com/flyteorg/flyteplugins/pull/293#issuecomment-1328066538 please let me know if that helps…
119 Views