kubeadm-scripts icon indicating copy to clipboard operation
kubeadm-scripts copied to clipboard

Use of non-standard device name in script master.sh

Open ifriedman7 opened this issue 10 months ago • 0 comments

In the master.sh script, there is a command that will almost always fail: MASTER_PRIVATE_IP=$(ip addr show eth1 | awk '/inet / {print $2}' | cut -d/ -f1) This is due to 'eth1' not being the name of an existing device. Additionally, 'eth1' does not follow the Consistent Network Device Naming convention. I suggest using 'ip addr show scope global'. This should produce working results. MASTER_PRIVATE_IP=$(ip addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1) This worked for me.

ifriedman7 avatar Jan 08 '25 12:01 ifriedman7