hoeghh / kubernetes_the_easy_way

Automating Kubernetes the hard way with Vagrant and scripts
MIT License
20 stars 11 forks source link

Define custom hosts entries in /etc/hosts on each machine #31

Closed hoeghh closed 6 years ago

hoeghh commented 6 years ago

In cases where you have an external NFS server, which is not resolvable via an DNS server, it would be nice to be able to add custom entries.

hoeghh commented 6 years ago

Implemented with 38aa70bd17b2f67fdb4f32b867bdcc968835960d

In the config file, i've added a variable called EXTRA_HOSTS. If you add hosts entries to that, they will be populated to each machine created by Vagrant.

Example:

export EXTRA_HOSTS="
192.168.1.148 nfs-server.example.com
192.168.1.150 mail-server.example.com
"