cold-teacher-46250
07/22/2025, 5:58 PMjolly-florist-66728
07/22/2025, 5:58 PMcold-teacher-46250
07/22/2025, 6:02 PMjolly-florist-66728
07/22/2025, 6:02 PMHOSTNAME
(for pod name) and, if configured, POD_UID
(for pod UID) from within your task code. This is not Flyte-specific but is standard Kubernetes behavior. The Flyte docs do not mention automatic injection of pod UID as an environment variable, so you may only reliably get the pod name via os.environ["HOSTNAME"]
in Python tasks. Pod UID would require additional Kubernetes configuration not covered in the Flyte docs.
Would you like a code example for accessing the pod name in a Flyte task?
Sources:
- https://www.union.ai/docs/flyte/deployment/flyte-configuration/configuring-logging-links-in-the-ui/#how-to-configure
- https://github.com/flyteorg/flyte/blob/master/flyteplugins/go/tasks/pluginmachinery/tasklog/template_test.go 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.