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
@khokha Because your pod ( hello ) is in network-policy project.
Recall that in step 8 , our objective was :
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
@khokha Because your pod ( hello ) is in network-policy project.
Recall that in step 8 , our objective was :
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
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.