Update bookinfo application deploy and clean scripts for Istio 1.0.x 69/63569/2
authorJingLu5 <lvjing5@huawei.com>
Tue, 16 Oct 2018 06:20:05 +0000 (14:20 +0800)
committerJingLu5 <lvjing5@huawei.com>
Tue, 16 Oct 2018 06:27:34 +0000 (14:27 +0800)
Since Istio 1.0, a new traffic management API, a.k.a. v1alpha3, is being introduced.
And there are also some minor changes in the deployment and clean steps for bookinfo application.

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

index ad8c120..c4eef11 100755 (executable)
@@ -21,10 +21,10 @@ cd /vagrant/istio-source/
 export PATH=$PWD/bin:$PATH
 
 # Run the test application: bookinfo
-kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo.yaml)
+kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml)
 
 # Define the ingress gateway for the application
-istioctl create -f samples/bookinfo/routing/bookinfo-gateway.yaml
+kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
 
 # Wait for bookinfo deployed
 kubectl get services
index ede825f..7c539c0 100755 (executable)
@@ -21,7 +21,9 @@ cd /vagrant/istio-source/
 export PATH=$PWD/bin:$PATH
 
 # Clean up bookinfo
-echo "" | samples/bookinfo/kube/cleanup.sh
+echo "" | samples/bookinfo/platform/kube/cleanup.sh
 
-istioctl get routerules
+kubectl get virtualservices
+kubectl get destinationrules
+kubectl get gateway
 kubectl get pods