Scenarios:
admission webhook "tkr-resolver-cluster-webhook.tanzu.vmware.com" denied the request: Could not resolve KR/OSImage Multiple OSImages resolved for Control Plane.
Error from server (Forbidden): error when creating "cluster.yaml": admission webhook "tkr-resolver-cluster-webhook.tanzu.vmware.com" denied the request: Could not resolve KR/OSImageMultiple OSImages resolved for Control Plane. KR: v1.30.1---vmware.1-fips-tkg.5, OSImages resolved: [vmi-################ vmi-################], filters: {k8sVersionPrefix: v1.30.1+vmware.1-fips, osImageSelector: os-name=ubuntu,tkr.tanzu.vmware.com/standard}Multiple OSImages resolved for MachineDeployment default. KR: v1.30.1---vmware.1-fips-tkg.5, OSImages resolved: [vmi-################ vmi-################], filters: {k8sVersionPrefix: v1.30.1+vmware.1-fips, osImageSelector: os-name=ubuntu}
VMware Tanzu Kubernetes Service
vSphere Supervisor: Kubernetes version v1.27
vCenter 8.0.3e
You may have multiple Content Libraries linked to the Supervisor environment and they contain the same VKr images
Refer to Resolve VKr Image Conflicts.
Or you may be able to dissociate or remove one of the libraries completely (see Resolution section)
Confirm if multiple Content Libraries are linked to the Supervisor environment
kubectl CLIUsing Supervisor kubectl context, run the following command:
kubectl get clustercontentlibraries
Example:
$ kubectl get clustercontentlibraries NAME VSPHERENAME TYPE STORAGETYPE AGEcl-CONTENT_LIBRARY_ID1 LIB_NAME_1 Subscribed Datastore 157dcl-CONTENT_LIBRARY_ID2 LIB_NAME_2 Subscribed Datastore 157d
kubectl get clustercontentlibraryitems --sort-by='{.status.contentLibraryRef.name}' --no-headers | awk '{print $1,$2,$3}' | sort -n | grep cl-CONTENT_LIBRARY_ID1
kubectl get clustercontentlibraryitems --sort-by='{.status.contentLibraryRef.name}' --no-headers | awk '{print $1,$2,$3}' | sort -n | grep cl-CONTENT_LIBRARY_ID12
If the content libraries are 'not' the same, or you cannot remove one one of them, you will need to add the documented annotation to your cluster.
Refer to Resolve VKr Image Conflicts.