Change hostnames
To change a hostname, you should first login into the node using SSH and then type
sudo nano /etc/cloud/cloud.cfg
Then find
preserve_hostname: false
and change it to preserve_hostname: true
Save and exit.

Then type the following command in your terminal window
sudo nano /etc/hostname
Change the hostname to
worker01
, for example.Save, exit, and reboot.
sudo reboot
Last modified 2yr ago