kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
40.72k stars 13.96k forks source link

Fix a bug while setting the hostname for all machines #778

Open gersonsosa opened 5 months ago

gersonsosa commented 5 months ago

Fixes the sed command that adds a line to the /etc/hosts to change the hostname and the fully qualified name file for each machine.

Discovered it because the output of this command is different https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/a9cb5f7ba50b3ed496a18a09c273941f80c6375a/docs/03-compute-resources.md?plain=1#L116-L125