YYYY-MM-DDTHH:MM:SS info wcp reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch clusters: failed to list clusters: failed to list clusters: the server could not find the requested resourceYYYY-MM-DDTHH:MM:SS error wcp [apiserver/manager.go:158] [opID=#####-#####-#####-#####-#####] timed out waiting for kube-apiserver-lb-svc service update. Err: context deadline exceededYYYY-MM-DDTHH:MM:SS error wcp [kubelifecycle/controller.go:1830] [opID=#####-#####-#####-#####-#####] An error occurred fetching the virtual IP: Timed out waiting for LB service update. This operation is part of the cluster enablement and will be retried.. Retrying
ako-controller pod in the vmware-system-ako namespace is stuck in a CrashLoopBackOff state when checked on Supervisor cluster: kubectl get pods -A | grep -i vmware-system-ako-ako-controller-managervmware-system-ako vmware-system-ako-ako-controller-manager-6d55d944f6-7tqv4 0/1 CrashLoopBackOff
ako-controller pod reveal a segmentation violation and a panic caused by an incorrect cloud type (CLOUD_NSXT):kubectl logs <ako-controller pod name> -n vmware-system-ako
YYYY-MM-DDTHH:MM:SS INFO utils/avi_rest_utils.go:104 Setting the client version to the current controller version 22.1.2YYYY-MM-DDTHH:MM:SS INFO cache/controller_obj_cache.go:2343 Avi cluster state is CLUSTER_UP_HA_ACTIVEYYYY-MM-DDTHH:MM:SS INFO cache/controller_obj_cache.go:2910 Setting cloud vType: CLOUD_NSXTYYYY-MM-DDTHH:MM:SS INFO cache/controller_obj_cache.go:2913 Setting cloud uuid: cloud-#####-#####-#####-#####-#####panic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x17cc141]VMware vSphere Kubernetes Service
VMware vSphere Supervisor Cluster
ako-controller logs show it is pulling a configuration for an NSX-T Cloud (vType: CLOUD_NSXT). Because AKO expects an NSX-T backend but is running on VDS, it encounters a nil pointer dereference when checking for usable network labels, causing the controller to panic, crash, and fail to assign the necessary Virtual IP for the Kubernetes API Server.To resolve this issue, the Cloud type within the Avi Load Balancer Controller needs to be configured with vCenter Cloud to match the VDS networking environment.
For step-by-step instructions on properly configuring the vCenter Cloud type for AKO with VDS, refer to the following documentation: Deploying AKO via Helm into VKS on vSphere Supervisor with VDS Networking
Once the Avi Controller is correctly configured with a vCenter Cloud, the ako-controller pod will initialize successfully, and the Supervisor cluster deployment will automatically resume and complete the Load Balancer configuration step.