You can view the list of all namespaces that are created in Antrea container clusters, and filter this list based on several criteria, such as ID, Cluster Name, CNI Type, Type of container cluster, and some more criteria.

When the inventory of Antrea container clusters is available in NSX inventory, cluster administrators can do basic analysis and diagnostic tasks in the NSX Manager UI.

For example:
  • View the number of Pods running in each namespace, the number of Pods that are down, and so on.
  • View the number of Antrea Network Policies and Kubernetes Network Policies.
  • Read the specifications of Antrea Network Policies and Kubernetes Network Policies.
  • View the Ingress Rules that are associated with a namespace.

Prerequisites

Antrea container clusters must be registered to NSX.

For a detailed information about registering an Antrea container cluster, see Registering an Antrea Container Cluster to NSX.

Procedure

  1. From your browser, log in to an NSX Manager at https://nsx-manager-ip-address.
  2. Navigate to Inventory > Containers > Namespaces.
    A list of all namespaces across all container clusters is displayed in the table.
  3. To view the list of namespaces created only in Antrea container clusters, filter the table by CNI Type as Antrea.
  4. Expand a row in the table to view more details about the namespace.
    For example, view the following details:
    • Number of Ingress Rules and the details of each Ingress Rule in the namespace.
    • Number of Network Policies in the namespace. These policies refer to Antrea Network Policies and Kubernetes Network Policies, which have their scope limited to a namespace.
    • Specifications (YAML manifest) of the Network Policies that are associated with the namespace.
    • Number of labels and the details of each label in the namespace.

    This list does not mention all the inventory details that you can view for a namespace. Check the Namespaces page in the NSX Manager UI to know more.

    Note:
    • For Antrea container clusters, the Networking Status column displays Not Applicable. Currently, this column is used only for container clusters that use NSX Container Plugin (NCP) as the CNI.
    • When NSX discovers labels on container cluster objects, such as Nodes, Namespaces, Pods, Services, and so on, these labels are always displayed with a dis:k8s prefix in the NSX inventory. Remember that a label in Kubernetes maps to a tag in NSX, whereas a key in Kubernetes maps to a scope in NSX.