From 886c8e7f8ac29d72d073c72e41f386b09ad69dbf Mon Sep 17 00:00:00 2001 From: JingLu5 Date: Tue, 16 Oct 2018 10:40:02 +0800 Subject: 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 --- src/vagrant/kubeadm_istio/istio/deploy.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit 1.2.3-korg