HPA API Version deprecated in K8s 1.23+
sarasensible opened this issue · 2 comments
Describe the bug
The Horizontal Pod Autoscaling API version autoscaling/v2beta1 is deprecated in Kubernetes 1.23+. We should provide the options to migrate this to the new API autoscaling/v2 which is available in K8s 1.23+.
To Reproduce
Deploy the HPA on Kubernetes 1.23+ which fails with no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta1"
Expected behavior
The Helm chart should use .Capabilities.APIVersions.Has
to auto-select the correct API version option. It should also use the correct spec depending on which API version is selected - targetAverageUtilization has been replaced with:
target:
type: Utilization
averageUtilization: {{ .Values.targetUtilization }}
Environment:
- Kubernetes version: 1.25
- kube-httpcache version: v0.7.1
Configuration
If applicable, add your VCL configuration file and other relevant configuration settings
Additional context
Add any other context about the problem here.
I can work on this issue!
Update: PR opened!
Once it's merged is it possible to know when it will be released? Thanks!