cancel
Showing results for 
Search instead for 
Did you mean: 
khokha
Flight Engineer
Flight Engineer
  • 753 Views

Hello,

In ch04s04 step 8.2

why did i apply the network policy in the project network-policy not in project different-namespace?

If i applied it to the different-namespace project would there be a change in the network policy configuration and what it is ?

Thanks

1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 731 Views

@khokha Because your pod ( hello ) is in network-policy project. 

Recall that in step 8 , our objective was : 

Chetan_Tiwary__1-1698679291098.png

same way in step 6.3 : you created a network policy to target all pods in the network-policy project.

you need to apply the network policy to the network-policy project in order to control the traffic to and from the hello pod.

You can refer Ch04s03 theory for this : https://rol.redhat.com/rol/app/courses/do280-4.12/pages/ch04s03 

 

View solution in original post

0 Kudos
1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 732 Views

@khokha Because your pod ( hello ) is in network-policy project. 

Recall that in step 8 , our objective was : 

Chetan_Tiwary__1-1698679291098.png

same way in step 6.3 : you created a network policy to target all pods in the network-policy project.

you need to apply the network policy to the network-policy project in order to control the traffic to and from the hello pod.

You can refer Ch04s03 theory for this : https://rol.redhat.com/rol/app/courses/do280-4.12/pages/ch04s03 

 

0 Kudos
Join the discussion
You must log in to join this conversation.