Kubernetes IKS cloud | how to get actual hostname of the node from node describe?

114 Views Asked by At

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

1

There are 1 best solutions below

1
On

Yes, you can use the label ibm-cloud.kubernetes.io/worker-id