-
Notifications
You must be signed in to change notification settings - Fork 392
Add nodeSelector support in ClusterGroup #7040
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
Comments
cc @tnqn @edwardbadboy in case I missed any critical information. |
This is to make the selector consistent on ACNP and ClusterGroup. We now already support |
I want to clarify the scope for this change here:
|
Even today, the @Dyanngg do you want to limit the |
AFter my chat with Yang, I'm going to proceed with these assumptions:
Just double check with @antoninbas - do you agree we should start with not supporting a ClusterGroup with mixed node and pod selector group children? |
I don't think there is a need for such a restriction as long as a group (with or without children) that selects Nodes cannot be used in an |
Seems like a mixed clustergroup for ingress/egress is not going to be a problem? is that right? |
Had a chat with @antoninbas and we think that's it's probably easier to just implement nodeSelector support in appliedTo groups. |
There is a use case reported from the end user that four clusters are sharing one API service IP (shared one controller plane?) in their env. The user wants to set up ACNPs to make sure only selected Pods are allowed to the K8s API Service, so he/she created a ClusterGroup with pod and namespace selector matching kube-apiserver labels, however, due to the Antrea-controller would omit the hostNetwork Pods in ClusterGroup members, it doesn't meet their requirement.
In order to allow users to create ACNPs to do the right network policy control in such scenarios, it would be good to have
nodeSelector
support in ClusterGroup.The text was updated successfully, but these errors were encountered: