When Kafka statefulset resources are orchestrated across clusters using Kosmos, they utilize dynamic environment variables, such as obtaining the nodeName of the current pod. However, in the current version of Kosmos, when pods are dispatched to leaf clusters, they are assigned virtual node names instead of the actual leaf cluster node names. This discrepancy leads to operational issues with the pods.
What happened:
When Kafka statefulset resources are orchestrated across clusters using Kosmos, they utilize dynamic environment variables, such as obtaining the nodeName of the current pod. However, in the current version of Kosmos, when pods are dispatched to leaf clusters, they are assigned virtual node names instead of the actual leaf cluster node names. This discrepancy leads to operational issues with the pods.
What you expected to happen: the pod should get the real env
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment: