From: JingLu5 Date: Thu, 11 Oct 2018 07:02:57 +0000 (+0800) Subject: Improve Istio installation X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=64a3e843496d2195417a37090e2f84fe27bc8d20;p=container4nfv.git Improve Istio installation Since Istio 1.0, there is an independent Istio’s Custom Resource Definitions manifest. It is recommended to install Istio's CRD first before invoking the istio-demo.yaml to avoid error like: unable to recognize "install/kubernetes/istio-demo.yaml": no matches for config.istio.io/, Kind=attributemanifest unable to recognize "install/kubernetes/istio-demo.yaml": no matches for config.istio.io/, Kind=attributemanifest in https://build.opnfv.org/ci/view/clover/job/clover-daily-deploy-master/210/consoleFull Change-Id: I9c26458d713ea1e01cb5976e4203843569ba7db2 Signed-off-by: JingLu5 --- diff --git a/src/vagrant/kubeadm_istio/istio/deploy.sh b/src/vagrant/kubeadm_istio/istio/deploy.sh index 84af41b..7620e2b 100755 --- a/src/vagrant/kubeadm_istio/istio/deploy.sh +++ b/src/vagrant/kubeadm_istio/istio/deploy.sh @@ -35,6 +35,9 @@ echo 'export PATH="$PATH:/vagrant/istio-source/bin"' >> ~/.bashrc echo "source <(kubectl completion bash)" >> ~/.bashrc source ~/.bashrc +# Install Istio’s Custom Resource Definitions first +kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml + kubectl apply -f install/kubernetes/istio-demo.yaml # Validate the installation