Hi everyone! So in this question, how do we determine that for controlplane node . . .

Priyanka Sharma:
Hi everyone! So in this question, how do we determine that for controlplane node “eth0” in the active interface and not “eth1"? and hence the internal IP of node is “10.82.9.6 “? I can get the IP from “hostname -I” but wanted to understand the output for inconfig command better….

Nagendra Maynattamai:
you could use kubectl get nodes -o wide which will display INTERNAL-IP then match it with the interface name.

Leo Pastor:
@ @Priyanka Sharma <Why> “controlplane node “eth0” is the active interface and not “eth1”?
Because the internal IP address of controlplane is assigned to eth0, not eth1.

  1. kubectl get nodes -o wide (look at the INTERNAL-IP column for controlplane)
  2. Or hostname -i
  3. You get “10.82.9.6” . Then:
  4. Look at the output of “ifconfig -a” and see which interface that IP is associated with
  5. Or "ip a | grep 10.82.9.6
    In summary, 2 steps:
    a) find the (internal) IP address of the node;
    b) find the interface it is associated with.

Priyanka Sharma:
@Leo Pastor Thank you so much for the explanation, it helps a lot!

Leo Pastor:
@Priyanka Sharma YAW, I am glad it helped!