tencentcloud-cloud-controller-manager icon indicating copy to clipboard operation
tencentcloud-cloud-controller-manager copied to clipboard

Name Kubernetes nodes with instance ID instead of internal IP

Open kaoet opened this issue 5 years ago • 0 comments

In the document, it says

Kubernetes 节点的名字需要和节点的内网 ip 相同

The internal IP of a Tencent Cloud VM is hard to retrieve when VM startup. It's not provided in cloud-init instance metadata, i.e. /run/cloud-init/instance-data.json. It can only be retrieved by reading IP address from network interface.

However, a more natual way to name the Kubernetes nodes is instance id, like ins-XXXX. It's provided in cloud-init metadata, and serves as a unique identifier when talking to Tencent Cloud API.

kaoet avatar Nov 21 '19 08:11 kaoet