@@ -77,7 +77,7 @@ Additional Options for ACI:
7777
7878Examples:
7979
80- 1. Install Contiv on Kubeadm master host using the specified DNS/IP for netmaster.
80+ 1. Install Contiv on Kubeadm master host using the specified DNS/IP for netmaster.
8181./install/k8s/install.sh -n <netmaster DNS/IP>
8282
83832. Install Contiv on Kubeadm master host using the specified DNS/IP for netmaster and specified ACI configuration.
@@ -101,7 +101,7 @@ error_ret() {
101101 exit 1
102102}
103103
104- while getopts " :s:n:v:w:c:t:k:a:u:p:l:d:e:m:y:z:" opt; do
104+ while getopts " :s:n:v:w:c:t:k:a:u:p:l:d:e:m:y:z:g:i: " opt; do
105105 case $opt in
106106 s)
107107 cluster_store=$OPTARG
@@ -151,6 +151,12 @@ while getopts ":s:n:v:w:c:t:k:a:u:p:l:d:e:m:y:z:" opt; do
151151 z)
152152 apic_cert_dn=$OPTARG
153153 ;;
154+ g)
155+ infra_gateway=$OPTARG
156+ ;;
157+ i)
158+ infra_subnet=$OPTARG
159+ ;;
154160 :)
155161 echo " An argument required for $OPTARG was not passed"
156162 usage
@@ -251,13 +257,18 @@ rm -f /usr/bin/netctl
251257cp ./netctl /usr/bin/
252258# Install Contiv
253259$kubectl apply -f $contiv_yaml
254- if [ " $fwd_mode " = " routing" ]; then
255- sleep 60
256- netctl --netmaster http://$netmaster :9999 global set --fwd-mode routing
257- fi
258260
259- $kubectl get deployment/kube-dns -n kube-system -o json > kube-dns.yaml
260- $kubectl delete deployment/kube-dns -n kube-system
261+ sleep 10
262+ for i in {0..30}; do
263+ netctl tenant ls > /dev/null 2>&1
264+ if [ " $? " -eq " 0" ]; then
265+ break
266+ fi
267+ sleep 10
268+ done
269+
270+ netctl net create -n infra -s $infra_subnet -g $infra_gateway contivh1
271+ netctl --netmaster http://$netmaster :9999 global set --fwd-mode routing
261272
262273echo " Installation is complete"
263274echo " ========================================================="
0 commit comments