Hello, please what is problem with this network policy?

Amel ECHEIKH EZAOUALI:
Hello, please what is problem with this network policy?


image.png

Sandeep Kumar:
Hi @Amel ECHEIKH EZAOUALI , you are applying this netpol to a pod, however it should be applicable to all pods. remove the podSelector from spec section and try.

Amel ECHEIKH EZAOUALI:
@Sandeep Kumar hi i just modified it but the validation test is always wrong

OE:
The name of the network policy is incorrect: ingress-to-nptes -> ingress-to-nptest

OE:
Just a tip that will help you in the exam: while trying the practice questions and tests in the course, practice verifying the results yourself before clicking on the score button. A small error like this can be the difference between passing and failing

Amel ECHEIKH EZAOUALI:
@OE yes you are right thanks for the advice :slight_smile: