Deploy sample apps
Deploy the Bookinfo and httpbin sample apps.
These sample apps are used throughout the documentation to help test connectivity, such as in the traffic management, security, and resiliency policy guides.
The Bookinfo and httpbin app in this example are deployed without Istio sidecars. If you plan to use Gloo Mesh Gateway with Gloo Mesh Enterprise to manage traffic for your service mesh, you can label the bookinfo
and httpbin
namespaces for Istio sidecar injection by running kubectl label namespace <namespace> istio-injection=enabled
.
Bookinfo
Create the
bookinfo
namespace.Deploy the Bookinfo app.
# deploy bookinfo application components for all versions less than v3 kubectl -n bookinfo apply -f https://raw.githubusercontent.com/istio/istio/1.18.7/samples/bookinfo/platform/kube/bookinfo.yaml -l 'app,version notin (v3)' # deploy an updated product page with extra container utilities such as 'curl' and 'netcat' kubectl -n bookinfo apply -f https://raw.githubusercontent.com/solo-io/gloo-mesh-use-cases/main/policy-demo/productpage-with-curl.yaml # deploy all bookinfo service accounts kubectl -n bookinfo apply -f https://raw.githubusercontent.com/istio/istio/1.18.7/samples/bookinfo/platform/kube/bookinfo.yaml -l 'account'
Verify that the Bookinfo app is deployed successfully.
kubectl get pods -n bookinfo kubectl get svc -n bookinfo
httpbin
The httpbin sample app is a simple tool to test HTTP requests and responses. Unlike curl, you can see not only the response headers, but also the request headers.
Create an
httpbin
namespace.Deploy the httpbin app.
kubectl -n httpbin apply -f https://raw.githubusercontent.com/solo-io/gloo-mesh-use-cases/main/policy-demo/httpbin.yaml
Verify that the httpbin app is running.
kubectl -n httpbin get pods
Next
Create an HTTP listener on your gateway and set up routing for the sample apps.