Upgrading the VKS version is blocked by an error: Can not create Supervisor Service tkg.vsphere.vmware.com on Supervisor domain-cXX.
search cancel

Upgrading the VKS version is blocked by an error: Can not create Supervisor Service tkg.vsphere.vmware.com on Supervisor domain-cXX.

book

Article ID: 440181

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

  • The following error is observed when attempting to upgrade the VKS version:
    • Can not create Supervisor Service tkg.vsphere.vmware.com on Supervisor domain-cXX. Core services are managed by vCenter. If a Core service is installed by default, create or delete it on Supervisor is not allowed.
  • In /var/log/vmware/wcp/wcpsvc.log on the vCenter, the following error is logged:
    • ClusterComputeResource com.vmware.wcp.ClusterSupervisorService.create.error Failed to install Supervisor Service on cluster.

Environment

  • vCenter 9.0.1
  • vSphere Kubernetes Service 
  • Multi-Zonal Supervisor Deployment

Cause

When the supervisor is deployed on multiple clusters the UI does not validate which cluster is the management cluster and may send the requests to the incorrect cluster triggering the error.

Resolution

As a workaround use dcli to update the VKS version, for example:

1. Open an SSH session to the vCenter.

2. Enter dcli with:

dcli +i

3. Get the supervisor ID:

dcli> com vmware vcenter namespacemanagement supervisors summary list

4. Update the VKS version with the following command ensuring to input the correct supervisor ID in the following command:

dcli> com vmware vcenter namespacemanagement supervisors supervisorservices set --supervisor xxxx-xxxxx-xxxxx-xxxxx --supervisor-service tkg.vsphere.vmware.com --version 3.6.2+v1.35

 

Additional Information

VMware Engineering is currently working on this issue.