Skip to content
Snippets Groups Projects
Commit 296e24ac authored by Eric Cano's avatar Eric Cano
Browse files

Fixed determination of IP addresses

parent 7c025942
Branches
Tags
No related merge requests found
......@@ -4,9 +4,17 @@ echo "Setting up DNS..."
dns_clusterip='10.254.199.254'
dns_domainname=`hostname -d`
my_ipaddress=`hostname -i`
my_ipaddress=`ifconfig docker0 | perl -e 'while(<>) { if (/inet\s+(\S+)\s/) { print $1."\n"; } }'`
sudo systemctl stop firewalld
sudo systemctl disable firewalld
#my_ipaddress=127.0.0.1
upper_level_dns=`perl -e 'while (<>) { if ($_=~ /nameserver (.*)/) { print $1."\n"; exit }}' < /etc/resolv.conf`
echo dns_clusterip=${dns_clusterip}
echo dns_domainname=${dns_domainname}
echo my_ipaddress=${my_ipaddress}
echo upper_level_dns=${upper_level_dns}
dnspoddir=$(mktemp -d)
cp dns-svc.yaml pod-dns.yaml ${dnspoddir}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment