Deploy sample apps

In order to try out the ambient mesh, deploy the Bookinfo app without sidecars.

  1. Create the bookinfo namespace.

    kubectl create ns bookinfo
    
  2. Deploy the Bookinfo app.

    # deploy bookinfo application components for all versions
    kubectl -n bookinfo apply -f https://raw.githubusercontent.com/istio/istio/1.18.2/samples/bookinfo/platform/kube/bookinfo.yaml -l 'app'
    # deploy all bookinfo service accounts
    kubectl -n bookinfo apply -f https://raw.githubusercontent.com/istio/istio/1.18.2/samples/bookinfo/platform/kube/bookinfo.yaml -l 'account'
    
  3. Verify that the Bookinfo app is deployed successfully.

    kubectl get pods -n bookinfo
    kubectl get svc -n bookinfo
    
  4. Verify that you can access the ratings app from the product page app.

    kubectl -n bookinfo debug -i pods/$(kubectl get pod -l app=productpage -A -o jsonpath='{.items[0].metadata.name}') --image=curlimages/curl -- curl -v http://ratings:9080/ratings/1
    

    Example output:

    ...
    Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Content-type: application/json
    < Date: Thu, 08 Sep 2022 18:56:59 GMT
    < Connection: keep-alive
    < Transfer-Encoding: chunked
    < 
    * Connection #0 to host ratings left intact
    {"id":1,"ratings":{"Reviewer1":5,"Reviewer2":4}}
    

    Next

    Add apps to an ambient mesh