操作系统信息
阿里云ECS,Centos7.9 16C/64G

Kubernetes版本信息
阿里云ACK Kubernetes 1.26.3

容器运行时
Version: 0.1.0

RuntimeName: containerd

RuntimeVersion: 1.6.20

RuntimeApiVersion: v1

KubeSphere版本信息
使用ks-install的方式从3.3版本升级至v3.4.0,升级命令如下:

kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.4.0/kubesphere-installer.yaml –force

遇到的问题
在将ACK Kubernetes 1.24.6 升级至升级至1.26.3版本后,收到异常告警:

经过排查kube-state-metrics日志发现以下报错:

经过确认,kubernetes 1.26.3 版本HorizontalPodAutoscaler已经弃用 apiVersion 中的autoscaling/v2beta2,改为:autoscaling/v2

尝试在kubesphere管理控制台设置动态伸缩页面报错:NotFound the server could not find the requested resource

监控kubesphere ks-console日志中发现POST请求的是:/apis/autoscaling/v2beta2/namespaces

请问以上问题在当前环境下如何进行处理,从而解决kube-state-metrics持续报错的问题