View the virtual network

Each organization in Google Distributed Cloud (GDC) air-gapped has its own isolated virtual network. An organization has two different IP ranges: an internal range and an external range.

View IP ranges using the CLI

To view the subnets and CIDR IP ranges for your organization's virtual network:

  1. Obtain the kubeconfig for the organization admin cluster or root admin cluster, and set the environment variable:

    export KUBECONFIG=CLUSTER_KUBECONFIG
    
  2. List all subnets in the platform namespace:

    kubectl --kubeconfig=${KUBECONFIG} get subnet -n platform
    

    The output displays the subnets and their configured IPv4 and IPv6 CIDR ranges:

    NAME                                READY   IPV4 CIDR       IPV6 CIDR
    default-vpc-default-node-subnet     True    10.210.2.0/23
    default-vpc-root-cidr               True    10.210.0.0/16
    
  3. To view details for a specific subnet, run:

    kubectl --kubeconfig=${KUBECONFIG} get subnet SUBNET_NAME -n platform -o yaml