adamant-kite-43734
11/19/2025, 1:16 PMpowerful-dinner-8007
11/19/2025, 2:03 PMbland-article-62755
11/19/2025, 6:29 PMbland-article-62755
11/19/2025, 6:29 PMfierce-zoo-18185
11/19/2025, 6:43 PM/etc/hosts if I define it myself.
Instead, it updates the existing 127.0.0.1 line and automatically appends the <hostname> to it, like:
127.0.0.1 localhost <hostname>
This happens even when the file already exists.
In my setup this caused issues, because resolving the hostname to 127.0.0.1 breaks some parts of the CSI stack.
However, if I add a line like:
<node-ip> <node-fqdn> <hostname>
before the localhost entry, then hostname -f resolves correctly and everything works fine β Harvester leaves this line untouched.
So the file is not fully overwritten, but Harvester still modifies the localhost entry based on the node name.
I may also enforce the correct FQDN with:
hostnamectl set-hostname <fqdn>
in the custom YAML, but the priority of lines in /etc/hosts already fixes the issue.
Just sharing this behavior in case it helps others with custom networking.fierce-zoo-18185
11/19/2025, 6:47 PMbland-article-62755
11/19/2025, 6:48 PMbland-article-62755
11/19/2025, 6:49 PMhostnamectlfierce-zoo-18185
11/19/2025, 6:50 PMbland-article-62755
11/19/2025, 6:51 PMbland-article-62755
11/19/2025, 6:54 PMrootfs might be a good stage since if there's mods to the /etc/hosts file, it'd be available.