Cannot bootstrap a Tanzu Kubernetes Grid cluster on Azure where the control plane Subnet specified is outside the lower bounds of the Vnet
search cancel

Cannot bootstrap a Tanzu Kubernetes Grid cluster on Azure where the control plane Subnet specified is outside the lower bounds of the Vnet

book

Article ID: 316947

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
  • You see a message similar to the following when using a template for the control plane that starts at any number other than 0/26:
Example:
vnet-1: 172.19.119.0/26
           support-subnet: 172.19.119.0/29
vnet-2: 172.19.119.64/26, 172.19.119.128/25
           control-plane-subnet: 172.19.119.64/26
           worker-subnet: 172.19.119.128/25

E0407 13:40:40.164789 1 controller.go:248] controller-runtime/controller "msg"="Reconciler error" "error"="failed to reconcile cluster services: failed to reconcile load balancer: failed to check IP availability: network.VirtualNetworksClient#CheckIPAddressAvailability: Failure responding to request: StatusCode=400 – Original Error: autorest/azure: Service returned an error. Status=400 Code=\"PrivateIPAddressNotInAnySubnet\" Message=\"Private static IP address 172.19.119.0 does not belong to the range of any subnet in the virtual network /subscriptions/43706c4e-b31d-425e-b5f5-e64e6bf63ac4/resourceGroups/tkg-130-repro-20210407/providers/Microsoft.Network/virtualNetworks/vnet-1.\" Details=[]" "controller"="azurecluster" "name"="mgmt-repro-20210407" "namespace"="tkg-system"


Environment

VMware Tanzu Kubernetes Grid 1.x

Resolution

This issue is resolved in Tanzu Kubernetes Grid 1.3.1.


Workaround:
To workaround this issue, supply a subnet for the control plane that starts at 0/26.

Example:

vnet-1: 172.19.192.0/26
           support-subnet: 172.19.119.192/29
vnet-2: 172.19.119.0/26, 172.19.119.64/26
           control-plane-subnet: 172.19.119.0/26
           worker-subnet: 172.19.119.64/26