Varun Saxena
Varun Saxena

Reputation: 61

HorizontalPodAutoscaler deployment fails post GKE upgrade to 1.26

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 ?

Upvotes: 0

Views: 1726

Answers (1)

Varun Saxena
Varun Saxena

Reputation: 61

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

Upvotes: 1

Related Questions