简体   繁体   中英

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM