Add a time lag for kubernetes to register Istio CRDs 57/63557/1
authorJingLu5 <lvjing5@huawei.com>
Tue, 16 Oct 2018 02:40:02 +0000 (10:40 +0800)
committerJingLu5 <lvjing5@huawei.com>
Tue, 16 Oct 2018 02:40:02 +0000 (10:40 +0800)
After separately install the CRDs first, it may need a few seconds to wait for Kubernetes to register them.

Change-Id: Ifb66c9688c080a5230b0df9762fb4dd861beaf83
Signed-off-by: JingLu5 <lvjing5@huawei.com>
src/vagrant/kubeadm_istio/istio/deploy.sh

index 7620e2b..4217807 100755 (executable)
@@ -38,6 +38,9 @@ source ~/.bashrc
 # Install Istio’s Custom Resource Definitions first
 kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
 
+# Wait 30s for Kubernetes to register the Istio CRDs
+sleep 30
+
 kubectl apply -f install/kubernetes/istio-demo.yaml
 
 # Validate the installation