summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2018-10-16 10:40:02 +0800
committerJingLu5 <lvjing5@huawei.com>2018-10-16 10:40:02 +0800
commit886c8e7f8ac29d72d073c72e41f386b09ad69dbf (patch)
treeb792f4693512b8f07e6aab41be30ff5b32dfb9be
parent64a3e843496d2195417a37090e2f84fe27bc8d20 (diff)
Add a time lag for kubernetes to register Istio CRDs
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>
-rwxr-xr-xsrc/vagrant/kubeadm_istio/istio/deploy.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_istio/istio/deploy.sh b/src/vagrant/kubeadm_istio/istio/deploy.sh
index 7620e2b..4217807 100755
--- a/src/vagrant/kubeadm_istio/istio/deploy.sh
+++ b/src/vagrant/kubeadm_istio/istio/deploy.sh
@@ -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