简体   繁体   English

Kubernetes IKS云| 如何从节点描述中获取节点的实际主机名?

[英]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.IKS平台中,节点的 Addresses 字段下的主机名与实际主机名不匹配。 Even the label with kubernetes.io/hostname is not having an actual hostname.即使是带有 kubernetes.io/hostname 的kubernetes.io/hostname也没有实际的主机名。 is it possible to use labels on the node?是否可以在节点上使用标签? I see there is one label whose value is matching with the actual hostname.我看到有一个 label 的值与实际主机名匹配。 ibm-cloud.kubernetes.io/worker-id Anyone from the IBM cloud team(IKS/ICP) can confirm this to rely on it or not. ibm-cloud.kubernetes.io/worker-id IBM 云团队 (IKS/ICP) 的任何人都可以确认是否依赖它。

there is a similar question asked on the same topic, but didn't get satisfactory answer how to identity k8s node uniquely在同一主题上提出了类似的问题,但没有得到满意的答案如何唯一地标识 k8s 节点

Yes, you can use the label ibm-cloud.kubernetes.io/worker-id是的,您可以使用 label ibm-cloud.kubernetes.io/worker-id

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Kubernetes维护中如何描述整个集群(运行的节点和单个节点的基本信息,我们用kubectl描述节点得到)? - How to describe entire cluster (Nodes running and individual node basic information, we get with kubectl describe nodes)in Kubernetes maintenance? Kubernetes:如何将 static IP 地址或主机名分配给节点和 POD - Kubernetes : How to assign static IP address or HostName to node and POD 如何通过主机名获取节点的内部IP - How to get Internal IP of node by hostname Kubernetes 入口描述未显示主机名 - Kubernetes Ingress describe is not showing hostname 在Kubernetes下是否可以将Pod主机名作为托管Node主机名? - Is it possible to have under Kubernetes the Pod hostname be the hosting Node hostname? 如何从 kubernetes 集群中注销 kubernetes 节点 - How to deregister a kubernetes node from a kubernetes cluster 从Java / Node JS将容器映像部署到kubernetes到Google Cloud - Deploy container images to kubernetes to google cloud from java/node js Kubernetes:如何获取节点的磁盘/ CPU指标 - Kubernetes: How to get disk / cpu metrics of a node Kubernetes 工作节点外部 ip 如何获取 - Kubernetes worker node external ip how to get it 如何获取在 Kubernetes 节点上运行的 Pod 的历史记录? - How to get history of Pods run on Kubernetes Node?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM