Improve Istio installation 07/63407/1
authorJingLu5 <lvjing5@huawei.com>
Thu, 11 Oct 2018 07:02:57 +0000 (15:02 +0800)
committerJingLu5 <lvjing5@huawei.com>
Thu, 11 Oct 2018 07:11:11 +0000 (15:11 +0800)
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 <lvjing5@huawei.com>
src/vagrant/kubeadm_istio/istio/deploy.sh

index 84af41b..7620e2b 100755 (executable)
@@ -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