Applying our learnings to a sample application
In this section, we will apply the learnings of the book – specifically, the knowledge from Chapters 4 to 6 – to our Online Boutique application. Let’s dive right in!
Enabling Service Mesh for the sample application
Now that OPA Gatekeeper is in place with all the constraints we want it to enforce on deployments, it’s time to deploy a sample application. We will first start with un-deploying the online-boutique
application and redeploying with istio-injection enabled at the namespace level.
Undeploy the Online Boutique application by deleting the online-boutique
namespace:
% kubectl delete ns online-boutique namespace " online-boutique " deleted
Once undeployed, let’s modify the namespace and add an istio-injection:enabled
label and redeploy the application. The updated namespace configuration will be as follows:
apiVersion: v1 kind: Namespace metadata: name: online...