Cluster Autoscaler package reconciliation fails on VKS cluster due to version mismatch
search cancel

Cluster Autoscaler package reconciliation fails on VKS cluster due to version mismatch

book

Article ID: 423230

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

When attempting to install or reconcile the Cluster Autoscaler package on a VKS cluster, the package reconciliation fails and reports the following status error in the pkgi describe output.

 kubectl describe pkgi -n vmware-system-tkg autoscaler

Status:
  Conditions:
    Message:             Expected to find at least one version, but did not (details: all=1 -> after-prereleases-filter=1 -> after-kubernetes-version-check=0 -> after-kapp-controller-version-check=0 -> after-constraints-filter=0)
    Status:              True
    Type:                ReconcileFailed
  Friendly Description:  Reconcile failed: Expected to find at least one version, but did not (details: a...
  Observed Generation:   1
Events:                  <none>

Environment

VMware vSphere Kubernetes Service

Cause

There is a strict 1:1 minor version requirement between the VKS Kubernetes Release (VKR) and the Cluster Autoscaler package version. For example, a cluster running VKR 1.27.x requires Cluster Autoscaler package version 1.27.y. If the minor versions do not match (e.g., pairing VKR 1.27.x with Autoscaler 1.28.x), the reconciliation process fails.

 

Resolution

Step 1: Verify Current VKR Version

    • Switch to the supervisor context and list "kubectl get clusters -A" and check the version filed

      root@supervisorID [ ~ ]# kubectl get cluster -A
      NAMESPACE      NAME              CLUSTERCLASS              AVAILABLE   CP DESIRED   CP AVAILABLE   CP UP-TO-DATE   W DESIRED   W AVAILABLE   W UP-TO-DATE   PHASE         AGE    VERSION
      <NAMESPACE>    <CLUSTER_NAME>    builtin-generic-v3.4.0    True        1            1              1               2           2             2              Provisioned   342d   v1.32.7+vmware.3-fips

Step 2: Verify Installed Cluster Autoscaler Package Version

    • Switch to the vks cluster context using "kubectl config use <vksclustercontext>" and list the installed packages

      root@vkscluster[ ~ ]# kubectl get pkgi -A
      NAMESPACE           NAME                                                 PACKAGE NAME                                  PACKAGE VERSION               DESCRIPTION           AGE
      package-installs    telegraf                                             telegraf.kubernetes.vmware.com                1.34.4+vmware.1-vks.1         Reconcile succeeded   295d
      vmware-system-tkg   autoscaler                                           cluster-autoscaler.kubernetes.vmware.com      1.32.2+vmware.1-vks.1         Reconcile succeeded   6m24s

    • Version Compatibility Rule: The Cluster Autoscaler package minor version must match the cluster VKR minor version. For example, if the cluster version is 1.32, the installed package version must also be 1.32.x. If the package version is 1.31.x, reconciliation will fail.

Step 3: If Package Version Mismatches VKR Version)

    • If a version mismatch exists, perform the following steps to update and reconcile the package:
      1. Check the available package versions in the repository to select the exact matching tag from the vks cluster context

        root@vkscluster [ ~ ]# kubectl get package -A | grep cluster-autoscaler
        tkg-system          cluster-autoscaler.kubernetes.vmware.com.1.33.0+vmware.1-vks.1            cluster-autoscaler.kubernetes.vmware.com            1.33.0+vmware.1-vks.1         7083h8m22s
        tkg-system          cluster-autoscaler.tanzu.vmware.com.1.29.0+vmware.1-tkg.1                 cluster-autoscaler.tanzu.vmware.com                 1.29.0+vmware.1-tkg.1         7083h8m22s
        tkg-system          cluster-autoscaler.tanzu.vmware.com.1.30.0+vmware.1-tkg.1                 cluster-autoscaler.tanzu.vmware.com                 1.30.0+vmware.1-tkg.1         7083h8m22s
        tkg-system          cluster-autoscaler.tanzu.vmware.com.1.31.0+vmware.1-tkg.1                 cluster-autoscaler.tanzu.vmware.com                 1.31.0+vmware.1-tkg.1         7083h8m22s
        tkg-system          cluster-autoscaler.tanzu.vmware.com.1.32.0+vmware.1-tkg.1                 cluster-autoscaler.tanzu.vmware.com                 1.32.0+vmware.1-tkg.1         7083h8m22s
        vmware-system-tkg   cluster-autoscaler.kubernetes.vmware.com.1.31.3+vmware.1-vks.1            cluster-autoscaler.kubernetes.vmware.com            1.31.3+vmware.1-vks.1         6428h58m47s
        vmware-system-tkg   cluster-autoscaler.kubernetes.vmware.com.1.32.2+vmware.1-vks.1            cluster-autoscaler.kubernetes.vmware.com            1.32.2+vmware.1-vks.1         6428h58m47s
        vmware-system-tkg   cluster-autoscaler.kubernetes.vmware.com.1.33.0+vmware.2-vks.1            cluster-autoscaler.kubernetes.vmware.com            1.33.0+vmware.2-vks.1         6428h58m47s
        vmware-system-tkg   cluster-autoscaler.kubernetes.vmware.com.1.34.0+vmware.1-vks.1            cluster-autoscaler.kubernetes.vmware.com            1.34.0+vmware.1-vks.1         6428h58m47s
        vmware-system-tkg   guest-cluster-auth-service.tanzu.vmware.com.1.4.1+vmware.1-tkg.1          guest-cluster-auth-service.tanzu.vmware.com         1.4.1+vmware.1-tkg.1          8222h19m0s

         
      2. Update the pkgi manifest to use the same version as cluster. 

        - Installed pkgi information

        root@vkscluster [ ~ ]# kubectl get pkgi -A
        NAMESPACE           NAME                                    PACKAGE NAME                                  PACKAGE VERSION               DESCRIPTION           AGE
        package-installs    telegraf                                telegraf.kubernetes.vmware.com                1.34.4+vmware.1-vks.1         Reconcile succeeded   295d
        vmware-system-tkg   autoscaler                              cluster-autoscaler.kubernetes.vmware.com      1.32.2+vmware.1-vks.1         Reconcile succeeded   6m24s
        vmware-system-tkg   <CLUSTER_NAME>-antrea                   antrea.tanzu.vmware.com                       2.2.0+vmware.2-tkg.1          Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-gateway-api              gateway-api.tanzu.vmware.com                  1.0.0+vmware.1-tkg.4-vmware   Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-guest-cluster-auth-serv  guest-cluster-auth-service.tanzu.vmware.com   1.4.1+vmware.1-tkg.1          Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-metrics-server           metrics-server.tanzu.vmware.com               0.7.2+vmware.5-tkg.2          Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-pinniped                 pinniped.tanzu.vmware.com                     0.39.0+vmware.2-tkg.1         Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-secretgen-controller     secretgen-controller.tanzu.vmware.com         0.18.1+vmware.3-fips-tkg.1    Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-vsphere-cpi              vsphere-cpi.tanzu.vmware.com                  1.32.2+vmware.1-tkg.1         Reconcile succeeded   342d
        vmware-system-tkg   <CLUSTER_NAME>-vsphere-pv-csi           vsphere-pv-csi.tanzu.vmware.com               3.4.0+vmware.1-tkg.1          Reconcile succeeded   342d

        - Edit the cluster-autoscaler pkgi

        root@vkscluster [ ~ ]# kubectl edit pkgi -n vmware-system-tkg autoscaler
        # Please edit the object below. Lines beginning with a '#' will be ignored,
        # and an empty file will abort the edit. If an error occurs while saving this file will be
        # reopened with the relevant failures.
        #
        apiVersion: packaging.carvel.dev/v1alpha1
        kind: PackageInstall
        metadata:
          annotations:
            kubectl.kubernetes.io/last-applied-configuration: |
              {"apiVersion":"packaging.carvel.dev/v1alpha1","kind":"PackageInstall","metadata":{"annotations":{},"name":"autoscaler","namespace":"vmware-system-tkg"},"spec":{"packageRef":{"refName":"cluster-autoscaler.kubernetes.vmware.com","versionSelection":{"constraints":"1.32.2+vmware.1-vks.1"}},"serviceAccountName":"autoscaler-sa","values":[{"secretRef":{"name":"autoscaler-data-values"}}]}}
          creationTimestamp: "2026-10-08T07:18:13Z"
          finalizers:
          - finalizers.packageinstall.packaging.carvel.dev/delete
          generation: 1
          name: autoscaler
          namespace: vmware-system-tkg
          resourceVersion: "13578894"
          uid: 056d173a-9402-438f-a36a-af515493be81
        spec:
          packageRef:
            refName: cluster-autoscaler.kubernetes.vmware.com
            versionSelection:
              constraints: 1.32.2+vmware.1-vks.1   # <-- EDIT THIS FIELD TO MATCH YOUR VKR MINOR VERSION (Use an available version from: kubectl get package -A | grep cluster-autoscaler)
          serviceAccountName: autoscaler-sa
          values:
          - secretRef:
              name: autoscaler-data-values
        status:
          conditions:
          - status: "True"
            type: ReconcileSucceeded
          friendlyDescription: Reconcile succeeded
          lastAttemptedVersion: 1.32.2+vmware.1-vks.1
          observedGeneration: 1
          version: 1.32.2+vmware.1-vks.1

Step 4: Monitor Package Reconciliation & Deployment Status

After saving the changes to PackageInstall, run these commands to track reconciliation and verify that the autoscaler pod turns Ready.

  • Verify that the PackageInstall resource has successfully reconciled:
root@vkscluster [ ~ ]# kubectl get pkgi -A
NAMESPACE           NAME         PACKAGE NAME                             PACKAGE VERSION        DESCRIPTION           AGE
vmware-system-tkg   autoscaler   cluster-autoscaler.kubernetes.vmware.com 1.32.2+vmware.1-vks.1  Reconcile succeeded   2m10s

Note: Confirm that the DESCRIPTION field shows Reconcile succeeded.

  •  Monitor Cluster Autoscaler Pod Status

Verify that the Cluster Autoscaler pod is created and in the Running state:

root@vkscluster [ ~ ]# kubectl get pods -A | grep autoscaler 

Expected Output:

NAMESPACE     NAME                                  READY   STATUS    RESTARTS   AGE
kube-system   cluster-autoscaler-586b669747-x9z8q   1/1     Running   0          2m15s

Additional Information