To change a hostname, you should first login into the node using SSH and then type
sudo nano /etc/cloud/cloud.cfg
Then findpreserve_hostname: false
and change it topreserve_hostname: true
Save and exit.
Then type the following command in your terminal window
sudo nano /etc/hostname
Change the hostname toworker01
, for example.
Save, exit, and reboot.
sudo reboot
Comments (0 comments)