When attempting to provision a vSphere Kubernetes Service (VKS) guest cluster, the deployment fails during the network initialization phase. Users may observe the following error messages:
Topology Error: TopologyReconcileFailed, Message: ClusterClass is not successfully reconciled: status of VariablesReady condition on ClusterClass must be "True"
Infrastructure Error: The condition type InfrastructureReady reports Status: False with the reason NotReady / SubnetPortNotReady.
NSX Fault String:
Message: network interface "eth0" error: network interface is not ready: SubnetPortNotReady - error occurred while processing the SubnetPort CR. Error: nsx error code: 500157, message: Error while creating objects of type: vpcSubnet, details: , related error: [{Details: , ErrorCode: 520012, ErrorMessage: IpAddressBlock [/orgs/default/projects/f996175a-/infra/ip-blocks/<VPC_Name>-<IP BLOCK>] does not have spare capacity to satisfy new block subnet /orgs/default/projects/f996175a-XXXX-XXXX-XXXX-XXXXXXXX/vpcs/<VPC_Name>/subnets/kubernetes-cluster-XXXX-XXXX_XXX-XXXX-XXXX-XXXX-b4215d8e1846_694d806f/ip-pools/static-ipv4-default/ip-subnets/XXXXXXXX-XXXX-XXXXX-a409-a1bb6350e625 of size 256., ModuleName: Policy}]
vSphere Kubernetes Runtime
vSphere Kubernetes Service
VMware NSX
Reference image from NSX:
Reference:
You can find the free IP left using API call from SDDC:
GET "https://NSX_Manager/policy/api/v1/infra/ip-blocks/<UUID>/usage"
Enter host password for user 'admin':
"used_ip_ranges" : [ "192.168.X.X - 192.168.X.XX" ],
"available_ip_ranges" : [ ],
"used_ips_count" : "32".
"available_ips_count" : "0"