When attempting to upgrade a workload cluster in vSphere Supervisor environment, the following error message is returned stating that the upgrade is not compatible:
error: tanzukubernetesclusters.run.tanzu.vmware.com "<workload cluster>" could not be patched: admission webhook "default.validating.tanzukubernetescluster.run.tanzu.vmware.com" denied the request: version upgrade not compatible with rules
vSphere Supervisor
This issue can occur regardless of the VKS supervisor service version installed.
This issue can occur regardless of whether or not the upgrading workload cluster is managed by Tanzu Mission Control (TMC)
Workload Cluster upgrades to a higher TKR or KR must be sequential, versions cannot be skipped.
For example, when upgrading from TKR v1.30 to desired TKR v1.32, the workload cluster must be first upgraded to TKR v1.31.
Once the workload cluster successfully upgrades to TKR v1.31, it can then be upgraded to TKR v1.32.
For more details, see How vSphere Supervisor Updates Work
Workload cluster upgrades must be sequential. TKR versions cannot be skipped.
kubectl get tkc -n <namespace> <workload cluster>
NAMESPACE NAME CONTROL PLANE WORKER KUBERNETES RELEASE NAME AGE READY UPDATES AVAILABLEFor a cluster using cluster class without a TKC:
<namespace> <workload cluster> X X <TKR version A> XXd True [<TKR version B>]
kubectl describe cluster -n <namespace> <workload cluster> | grep UpdatesAvailable -B3
- lastTransitionTime: "YYYY-MM-DDTHH:MM:SSZ"
message: '[<TKR version B>]'
status: "True"
type: UpdatesAvailable
After the VKS supervisor service is installed in vCenter, it overrides TKR compatibility in the environment.
In the vSphere web UI, the VKS service supervisor service version can be found under
Workload Management -> Services -> Tanzu Kubernetes Grid Service or vSphere Kubernetes Service
While connected to the Supervisor cluster, the VKS service supervisor service version can be found with the following command:
kubectl get pkgi -n vmware-system-supervisor-services
NAME PACKAGE NAME PACKAGE VERSION DESCRIPTION
svc-tkg.vsphere.vmware.com tkg.vsphere.vmware.com <vks service version> Reconcile succeeded
See the following documentation for details:
Interoperability Matrix between TKR and VKS service Supervisor Service