diff options
author | Bryan Sullivan <bryan.sullivan@att.com> | 2017-11-15 23:39:23 -0800 |
---|---|---|
committer | Bryan Sullivan <bryan.sullivan@att.com> | 2017-11-15 23:39:23 -0800 |
commit | 1b049b9d074ba54fe12179b5e5f9676983267b25 (patch) | |
tree | 087ddd58f3fbbaa909f7b4254ffe8767101394b4 /tools/cloudify | |
parent | df5e408a44765e18d7205dc922337e0c15da896d (diff) |
Add host IP to /etc/hosts on all nodes
JIRA: MODELS-2
Change-Id: I3ec97467dca521d869943d2334a452e1a73ff6e7
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/cloudify')
-rw-r--r-- | tools/cloudify/k8s-cloudify.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/cloudify/k8s-cloudify.sh b/tools/cloudify/k8s-cloudify.sh index bff85e4..36abb63 100644 --- a/tools/cloudify/k8s-cloudify.sh +++ b/tools/cloudify/k8s-cloudify.sh @@ -141,6 +141,7 @@ function setup () { HOST_IP=$(ip route get 8.8.8.8 | awk '{print $NF; exit}') # Forward host port 80 to VM + log "Setip iptables to forward $HOST_IP port 80 to Cloudify Manager VM at $VM_IP" sudo iptables -t nat -I PREROUTING -p tcp -d $HOST_IP --dport 80 -j DNAT --to-destination $VM_IP:80 sudo iptables -I FORWARD -m state -d $VM_IP/32 --state NEW,RELATED,ESTABLISHED -j ACCEPT sudo iptables -t nat -A POSTROUTING -j MASQUERADE |