NetworkPolicy and Pod,Service references

Hi i hace a question, if they ask me to create a NetworkingPolicy that allows the INPUT access of the POD / SERVICE called: dummy-02 / dummy-02-srv & dummy-02 / dummy-03-srv, to the POD named: dummy-01.

1

It is ok , that i create the NetworkingPolicy like this:

Tell me how i could TEST these to know if is ok.

Thak you.

@maktup

The manifest should like below to allow traffic from dummy-02 to dummy-01 on port 8080. The same applies for dummy-03.

Thanks for answering, but in the same Yamel could put the reference to: dummy-02 & dummy-03, in different: - from ?, Wouldn’t it be good ?, how could I prove it.

Thank you.

@maktup

Excelent how i would try it …

Thank you.