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

Add Node Selector in ACNP/ANP ingress/egress rules #3038

Merged
merged 2 commits into from Mar 24, 2022

Commits on Mar 24, 2022

  1. Support nodeSelector in ACNP/ANP ingress/egress rules

    1. Add `nodeSelector` field in ACNP/ANP ingress/egress rules to restrict
    traffic to/from particular Nodes.
    
    2. Add Node IPs info in the output of `antctl get addressgroup`.
    For example:
    ```
    antctl get addressgroup
    NAME                                 POD-IPS                                NODE-IPS
    5e1bbf8e-67a3-5384-b2bf-e42e93bd68aa <NONE>                                 192.168.0.1, 10.176.27.105
    f8c56571-d6db-51ec-9352-a9a47476a9a0 192.168.0.70,192.168.1.38,192.168.1.39 <NONE>
    
    antctl get addressgroup -oyaml
    - name: 5e1bbf8e-67a3-5384-b2bf-e42e93bd68aa
      nodes:
      - ip: 192.168.0.1, 10.176.27.105
        node:
          name: wenqiq01-1
    - name: f8c56571-d6db-51ec-9352-a9a47476a9a0
      pods:
      - ip: 192.168.1.38
        pod:
          name: iperf3-55bcff667d-v495l
          namespace: demo
      - ip: 192.168.1.39
        pod:
          name: iperf3-55bcff667d-c74ll
          namespace: demo
      - ip: 192.168.0.70
        pod:
          name: iperf3-55bcff667d-pz2d2
          namespace: demo
    ```
    
    Fixes: antrea-io#3023
    
    Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
    
    Co-authored-by: Quan Tian <qtian@vmware.com>
    wenqiq and tnqn committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    37b5c92 View commit details
    Browse the repository at this point in the history
  2. Update test case

    Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
    wenqiq committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    4b06963 View commit details
    Browse the repository at this point in the history