Skip to content

Commit

Permalink
upgrade hpa api version to v2
Browse files Browse the repository at this point in the history
Signed-off-by: Xiayang Wu <[email protected]>
  • Loading branch information
fivesheep committed Jul 25, 2023
1 parent f42db84 commit 0cfda5a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions charts/aws-pca-issuer/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "aws-privateca-issuer.fullname" . }}
Expand All @@ -18,12 +18,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit 0cfda5a

Please sign in to comment.