简体   繁体   中英

Kubernetes Network policies and traffic

I have two pods running within the same namespace there is no connection between then, however I want pod A to permit ingress & egress communication with pod B, I can not modify any of the objects that already exist, or create a new one. How can I accomplish this?

Posted community wiki based on comments for better visibility. Feel free to expand it.


Short answer: you can not do that without editing or creating new objects.

The recommended and supported way to control traffic flow in Kubernetes are Network Policies . You already have them configured in a cluster, so you must edit them or create a new policy to change a traffic flow. Check also this - Kubernetes Network Policy Recipes .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM