diff --git a/manifests/charts/istio-control/istio-discovery/templates/autoscale.yaml b/manifests/charts/istio-control/istio-discovery/templates/autoscale.yaml index b8b14ad0ba56..f6cf7ef296fe 100644 --- a/manifests/charts/istio-control/istio-discovery/templates/autoscale.yaml +++ b/manifests/charts/istio-control/istio-discovery/templates/autoscale.yaml @@ -1,5 +1,5 @@ {{- if and .Values.pilot.autoscaleEnabled .Values.pilot.autoscaleMin .Values.pilot.autoscaleMax }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} @@ -21,6 +21,8 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.pilot.cpu.targetAverageUtilization }} + target: + averageUtilization: {{ .Values.pilot.cpu.targetAverageUtilization }} + type: Utilization --- {{- end }} diff --git a/manifests/charts/istio-control/istio-discovery/templates/poddisruptionbudget.yaml b/manifests/charts/istio-control/istio-discovery/templates/poddisruptionbudget.yaml index 40b2e6015415..8a938ff479ff 100644 --- a/manifests/charts/istio-control/istio-discovery/templates/poddisruptionbudget.yaml +++ b/manifests/charts/istio-control/istio-discovery/templates/poddisruptionbudget.yaml @@ -1,5 +1,5 @@ {{- if .Values.global.defaultPodDisruptionBudget.enabled }} -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }}