Deploy Application
Last updated
Was this helpful?
Last updated
Was this helpful?
We will deploy a microservices application, then demonstrates how to use Calico application layer policy to mitigate some common threats.
We will use a simple microservice application to demonstrate Calico application layer policy. The YAO Bank application creates a customer-facing web application, a microservice that serves up account summaries.
Step1: Deploy the Application
Step2: Verify that the application pods have been created and are ready.
Step3: Identify the Services running
Step4: Login to the Customer Pod and Check the Access Database.
Note: Replace the podname with your own pod
or
Use the K9s to login to Customer Pod
Step5: Notice that from here, we get direct access to the backend database. For example, we can list all the entries in the database like this:
The above policy will protect the database being access by Customer Application, Rather allowed from Summary.
Step6: Login to the Customer Pod and Check the Access Database.
Note: Replace the podname with your own pod
or
Use the K9s to login to Customer Pod
Step7: Check the DB Access
Step7: Exit from Customer Pod
Step8: Login to the Summary Pod and Check the Access Database.
Note: Replace the podname with your own pod
or
Use the K9s to login to Summary Pod
Step7: Check the DB Access
Now it should not work.
Step7: Exit from Customer Pod
Now Delete the Policy and Check.