Do not handle /etc/hosts unless needed
Do not handle /etc/hosts unless needed

Hard coding host entries inside of /etc/hosts is dangerous. The ip
address of the nodes can be changed next time the cluster is restarted
causing several issues.

A couple of things that actually went wrong based on my experience:

  * flannel was not able to start -> docker couldn't start -> kubelet coudln't
    join the cluster
  * once I fixed the previous issue the node successfully joined the
    cluster and pods started to be created on it
  * api-server wasn't able to access the pods created on this node
    (eg: kubectl logs didn't work) because /etc/hosts was still wrong
    on the api server
  * sometimes published services were not working properly when accessed
    through the haproxy node. It turned out 1/3 of the nodes was not
    reachable because it had a wrong entry inside of /etc/hosts

kubic-project/salt,kubic-project/salt,ereslibre/salt,ereslibre/salt,kubic-project/salt,ereslibre/salt