Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Cross Namespace Network traffic #1274

Open
Tracked by #683
devdattakulkarni opened this issue May 14, 2024 · 2 comments
Open
Tracked by #683

Support for Cross Namespace Network traffic #1274

devdattakulkarni opened this issue May 14, 2024 · 2 comments

Comments

@devdattakulkarni
Copy link
Contributor

In certain situations, there might be a need to break the Namespace boundary that KubePlus enforces on service instances. For example, consider a setup where there is a database that needs to be used by two application instances. The database will be registered as its own KubePlus service with its own Helm chart. The application will be packaged as a separate Helm chart. KubePlus will create an instance of the database in its namespace. The two application instances will be created in their own namespaces. But KubePlus will prevent communication between the application instances and the database instance because of the Network Policy that KubePlus by default sets up for each application instance.

Selectively allowing cross Namespace traffic will allow KubePlus to handle this scenario.

@devdattakulkarni devdattakulkarni mentioned this issue May 14, 2024
6 tasks
@devdattakulkarni devdattakulkarni changed the title Support for Cross Namespace traffic Support for Cross Namespace Network traffic May 14, 2024
@devdattakulkarni
Copy link
Contributor Author

devdattakulkarni commented Dec 5, 2024

This can be implemented with a kubectl plugin.

kubectl allow network traffic <to-instance> <from-instance>

E.g.:
kubectl allow network traffic db1 wp1

The plugin implementation will update the NetworkPolicy object in db1 Namespace to allow network traffic from wp1 Namespace.

@devdattakulkarni
Copy link
Contributor Author

@SuyogShinde942 You can take a look at this one too, after the NetworkTraffic isolation verification issue is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant