Solving Incorrect Network Card IP Issues When Building Cross-Provider Kubernetes Clusters on Tencent Cloud

Kubernetes requires fully connected networks for all nodes, so each node should have an accessible IP address. Although each node has a public IP, Tencent Cloud machines don’t show this IP on the network card. This causes nodes to use their network card IP when joining the cluster, making it impossible for other nodes to find them using this IP.

To make the IP visible on the network card, you need to enable Tencent Cloud’s EIP direct pass-through feature. Note that the official script has issues with Debian 10 and doesn’t properly auto-start. The following changes are required:

Add /etc/rc.d/rc.local to the final line of /etc/rc.local

Although Tencent Cloud’s Debian 10 will start /etc/rc.local at boot, it won’t start /etc/rc.d/rc.local, but the provided script writes to the latter.

Reference documentation: https://cloud.tencent.com/document/product/1199/41709

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy