How can I change the Internal IP of my Kubernetes node?

3/9/2021

My kubelet has an internal IP that points to eth0. How can I change it to eth1?

I have already tried editing KUBELET_CONFIG_ARGS in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf both with and without --node-ip flag as described here.

In both cases, the internal ip reflects eth0

-- user3877654
ip
kubelet
kubernetes

1 Answer

3/10/2021

Ah, I was misusing the --node-ip flag in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

It will not autodetect or point. You need to manually specify the IP address on each node. Then rebuild. Fixed!

-- user3877654
Source: StackOverflow