KOP Recipes - Use Istio - Rafay Product Documentation

Use Istio

What Will You Do

In this exercise,


Assumptions

For this example, we will use the bookinfo application.


Step 1: Download Bookinfo sample application

curl -o bookinfo.yaml https://raw.githubusercontent.com/istio/istio/release-1.8/samples/bookinfo/platform/kube/bookinfo.yaml
curl -s https://raw.githubusercontent.com/istio/istio/release-1.8/samples/bookinfo/networking/bookinfo-gateway.yaml >> bookinfo.yaml

Step 2: Create a Namespace for demo app

Step 3: Create workload


Step 4: Verify Deployment

You can optionally verify whether the correct resources have been created on the cluster.

kubectl get po -n demo
NAME                              READY   STATUS    RESTARTS   AGE
details-v1-6bfd8cbcdb-q2l5p       2/2     Running   0          6m1s
productpage-v1-774bdff86b-znsz4   2/2     Running   0          6m1s
ratings-v1-75fb8f8646-jpggg       2/2     Running   0          6m4s
reviews-v1-5d89df7d4b-nndfh       2/2     Running   0          6m4s
reviews-v2-f47f8b6d8-mvn98        2/2     Running   0          6m1s
reviews-v3-65b7f987b6-48jwv       2/2     Running   0          6m1s
kubectl get gateway -n demo
NAME               AGE
bookinfo-gateway   108s
kubectl get virtualservice -n demo
NAME       GATEWAYS             HOSTS   AGE
bookinfo   [bookinfo-gateway]   [*]     112s

You can see that all the pods have a istio proxy attached. You can also check this from Rafay console -> cluster resources


Recap

Congratulations! You successfully deployed an application with istio sidecar injection.