Skip to content

Commit d24572c

Browse files
authored
fix: HPA v2 for k8s 1.26+ (#92)
Installing the Metaflow Helm chart beyond version `0.1.0` on supported k8s versions will cause this error: ```console The Kubernetes API could not find version "v2beta2" of autoscaling/HorizontalPodAutoscaler for requested resource metaflow/metaflow-kubeaagentdevus1-metaflow-service. Version "v1" of autoscaling/HorizontalPodAutoscaler is installed on the destination cluster. ``` The `v2beta2` API was removed in [k8s 1.26](https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-26). This commit bumps the version from `v2beta2` to `v2`.
1 parent da6598a commit d24572c

File tree

1 file changed

+1
-1
lines changed
  • charts/metaflow/charts/metaflow-service/templates

1 file changed

+1
-1
lines changed

charts/metaflow/charts/metaflow-service/templates/hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ if .Values.autoscaling.enabled }}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ include "metaflow-service.fullname" . }}

0 commit comments

Comments
 (0)