@@ -77,7 +77,7 @@ Additional Options for ACI:
77
77
78
78
Examples:
79
79
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.
81
81
./install/k8s/install.sh -n <netmaster DNS/IP>
82
82
83
83
2. Install Contiv on Kubeadm master host using the specified DNS/IP for netmaster and specified ACI configuration.
@@ -101,7 +101,7 @@ error_ret() {
101
101
exit 1
102
102
}
103
103
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
105
105
case $opt in
106
106
s)
107
107
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
151
151
z)
152
152
apic_cert_dn=$OPTARG
153
153
;;
154
+ g)
155
+ infra_gateway=$OPTARG
156
+ ;;
157
+ i)
158
+ infra_subnet=$OPTARG
159
+ ;;
154
160
:)
155
161
echo " An argument required for $OPTARG was not passed"
156
162
usage
@@ -251,13 +257,18 @@ rm -f /usr/bin/netctl
251
257
cp ./netctl /usr/bin/
252
258
# Install Contiv
253
259
$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
258
260
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
261
272
262
273
echo " Installation is complete"
263
274
echo " ========================================================="
0 commit comments