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

Network policy agent does not support Standalone Pods #327

Open
Pavani-Panakanti opened this issue Oct 31, 2024 · 0 comments
Open

Network policy agent does not support Standalone Pods #327

Pavani-Panakanti opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Pavani-Panakanti
Copy link
Contributor

Pavani-Panakanti commented Oct 31, 2024

What happened:
Network policy agent today supports only pods that are deployed as a part of deployment/replicaset. If network policies are applied to standalone pods there might be some inconsistencies in the behavior

Format of Pod Name: (pod-template-name)-(random-string)
(pod-template-name): This is the name of the template or controller that creates the Pod. For example, in a Deployment, this would be the name of the Deployment resource. Pods in same deployment will have same pod-template-name

If cx uses standalone pods with same pod-template-name like nginx-a, nginx-b, NP works with them as they belong to same deployment and this will cause inconsistent behavior while applying network policies

What you expected to happen:
Support network policies for standalone pods. Cx should be able to apply policies to individual pods based on pod selectors in a namespace

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
We are working towards providing support for standalone pods

Environment:

  • Kubernetes version (use kubectl version):
  • CNI Version
  • Network Policy Agent Version
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
@Pavani-Panakanti Pavani-Panakanti added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant