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

Do not expand IPBlock or ASG for Azure rule #299

Open
reachjainrahul opened this issue Aug 16, 2023 · 2 comments
Open

Do not expand IPBlock or ASG for Azure rule #299

reachjainrahul opened this issue Aug 16, 2023 · 2 comments

Comments

@reachjainrahul
Copy link
Contributor

Describe the problem/challenge you have

If an Antrea NetworkPolicy contains IPBlock or AddressGroup, each of the entry is translated to separate rule in Azure NSG. This will have scale implication as Azure NSG can support only 1000 rules.

Describe the solution you'd like

Add compression login in Azure plugin to combine IPBlock and Address groups of ANP in 1 rule.

@reachjainrahul
Copy link
Contributor Author

Further, if a rule contains more than 1 services (port), for each port, a unique rule will be created in Azure cloud. This is not optimal.

For example,

apiVersion: crd.antrea.io/v1alpha1
kind: NetworkPolicy
metadata:
  name: allow-all
  namespace: azure-ns
spec:
  priority: 10
  appliedTo:
  - group: all-vms
  ingress:
  - from:
      - ipBlock:
          cidr: 1.1.0.0/24
    action: Drop
    ports:
      - protocol: TCP
        port: 443
      - protocol: TCP
        port: 80

This will translate to two rules.

Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

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

No branches or pull requests

2 participants