In IKS platform, the hostname under the Addresses field of a node is not matching with the actual hostname.
Even the label with kubernetes.io/hostname
is not having an actual hostname.
is it possible to use labels on the node? I see there is one label whose value is matching with the actual hostname. ibm-cloud.kubernetes.io/worker-id
Anyone from the IBM cloud team(IKS/ICP) can confirm this to rely on it or not.
there is a similar question asked on the same topic, but didn't get satisfactory answer how to identity k8s node uniquely