Skip to content

Commit

Permalink
Adding default params for infra vars
Browse files Browse the repository at this point in the history
  • Loading branch information
neelimamukiri committed Apr 14, 2017
1 parent fa52081 commit 7997a9e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install/k8s/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contiv_config=""
# Specify TLS certs to be used for API server
tls_cert=""
tls_key=""
fwd_mode="bridge"
fwd_mode="routing"
# ACI parameters
apic_url=""
apic_username=""
Expand All @@ -47,6 +47,9 @@ apic_contracts_unrestricted_mode="no"
aci_key=""
apic_cert_dn=""

infra_gateway="132.1.1.1"
infra_subnet="132.1.1.0/24"

usage() {
echo "Usage:"
cat <<EOF
Expand Down Expand Up @@ -259,16 +262,18 @@ cp ./netctl /usr/bin/
$kubectl apply -f $contiv_yaml

sleep 10
set +e
for i in {0..30}; do
netctl tenant ls >/dev/null 2>&1
if [ "$?" -eq "0" ]; then
break
fi
sleep 10
done
set -e

netctl global set --fwd-mode $fwd_mode
netctl net create -n infra -s $infra_subnet -g $infra_gateway contivh1
netctl --netmaster http://$netmaster:9999 global set --fwd-mode routing

echo "Installation is complete"
echo "========================================================="
Expand Down

0 comments on commit 7997a9e

Please sign in to comment.