< Previous Challenge - Home - Next Challenge >
Have you ever wondered how to restrict traffic between applications? In challenge 6 we will be creating a network policy that does exactly that! It is time to apply some security hardening and restrict communication to our API.
In this challenge, we will be deploying two network policies that will restrict traffic between pods in our ARO cluster. Network policies can be deployed by using either the ARO Web Console or the OpenShift CLI.
deny-all
that denies all traffic by default using a YAML file you create
allow-rating-web
that will allow traffic to rating-web from all pods using a YAML file you create
allow-rating-api
that will allow traffic to rating-api from rating-web using a YAML file you create
To complete this challenge successfully, you should be able to:
deny-all
network policy blocked all trafficallow-rating-web
network policy allows trafficallow-rating-api
network policy allows traffic between the backend and frontend application