HorizontalPodAutoscaler deployment fails post GKE upgrade to 1.26

1.1k Views Asked by At

We are using gcp and have recently updated to gke 1.26 earlier it was 1.16 something.

We had a horizontal pod autoscaler defined for one of our deployment using version :- :autoscaling/v2beta2" now since "autoscaling/v2beta2" has been removed from 1.26 gke, we have updated the hpa manifest with version as "v2".

While trying helm upgrade we still get below errors:-

UPGRADE FAILED: unable to build 
kubernetes objects from current release manifest: resource mapping not found for name:
 "***-autoscaler" namespace: "*****" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2" ensure CRDs are installed first.

Although there is no reference to "autoscaling/v2beta2" in any deployment file. What could be the issue here ?

1

There are 1 best solutions below

0
Varun Saxena On

This was some issue with helm , tried uninstalling and reinstalling the chart and it worked for me.