T
T
Tylen2020-12-21 13:38:14
linux
Tylen, 2020-12-21 13:38:14

How to write NetworkPolicy for kubernetes?

Hello, I can’t figure out how to write a rule for my namespace, there is a rule in the photo that allows only two namespaces to communicate with each other, I also need to add the ability to receive traffic from the Internet.\
5fe07b143f2ce536254652.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-12-21
@Tylen

To add another namespace - add another namespaceSelector or add a label abc: qweto all the required namespaces.


the ability to receive traffic from the Internet

Here, clarification is required - how will traffic from the Internet get to the pods? Through ingress or through Node/Host Port?
This guide should help configure policies correctly https://www.stackrox.com/post/2019/04/setting-up-k...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question