summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_istio/istio
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2018-10-16 14:20:05 +0800
committerJingLu5 <lvjing5@huawei.com>2018-10-16 14:27:34 +0800
commit0528b9a9bac18a3b6d700467def3318fd53bf22c (patch)
tree8e2838b9e5714c6a1119a1cb1bccecaed17055cb /src/vagrant/kubeadm_istio/istio
parent886c8e7f8ac29d72d073c72e41f386b09ad69dbf (diff)
Update bookinfo application deploy and clean scripts for Istio 1.0.x
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>
Diffstat (limited to 'src/vagrant/kubeadm_istio/istio')
-rwxr-xr-xsrc/vagrant/kubeadm_istio/istio/bookinfo.sh4
-rwxr-xr-xsrc/vagrant/kubeadm_istio/istio/clean_bookinfo.sh6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/vagrant/kubeadm_istio/istio/bookinfo.sh b/src/vagrant/kubeadm_istio/istio/bookinfo.sh
index ad8c120..c4eef11 100755
--- a/src/vagrant/kubeadm_istio/istio/bookinfo.sh
+++ b/src/vagrant/kubeadm_istio/istio/bookinfo.sh
@@ -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
diff --git a/src/vagrant/kubeadm_istio/istio/clean_bookinfo.sh b/src/vagrant/kubeadm_istio/istio/clean_bookinfo.sh
index ede825f..7c539c0 100755
--- a/src/vagrant/kubeadm_istio/istio/clean_bookinfo.sh
+++ b/src/vagrant/kubeadm_istio/istio/clean_bookinfo.sh
@@ -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