#!/bin/bash

cat << EOF > /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
${K8S_MASTER_LB_IP}   ${K8S_LB}
${K8S_MASTER_IP01}   ${K8S_MASTER01}
${K8S_MASTER_IP02}   ${K8S_MASTER02}
${K8S_MASTER_IP03}   ${K8S_MASTER03}
${K8S_NODE_IP01}   ${K8S_NODE01}
${K8S_NODE_IP02}   ${K8S_NODE02}
${K8S_NODE_IP03}   ${K8S_NODE03}
${REGISTRY}   registry.edoc2.com
${K8S_MASTER_LB_IP}   edoc2v5.rancher.pre.com
EOF
