From 0471e6576c79cc298755428ee124aef4aca773b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Houpert?= <10154151+lhoupert@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:01:28 +0000 Subject: [PATCH] Update maas-setup.sh Using the variable $INTERFACE for consistency --- maas-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maas-setup.sh b/maas-setup.sh index 4844433..5ac19d8 100644 --- a/maas-setup.sh +++ b/maas-setup.sh @@ -174,7 +174,7 @@ kubectl get pods -n hello-kubecon # Lastly, in order to be able to reach the service from outside our host machine, # we can use port forwarding. Replace 10.10.10.5 with the IP seen on the ingress. -sudo iptables -t nat -A PREROUTING -p tcp -i enp6s0 \ +sudo iptables -t nat -A PREROUTING -p tcp -i $INTERFACE \ --dport 8000 -j DNAT --to-destination 10.10.10.5:80 # if you want to persist this, run sudo dpkg-reconfigure iptables-persistent # Now you should be able to open a browser and navigate to http://$IP_ADDRESS:8000