|
|
|
@ -369,7 +369,7 @@ metadata:
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
const defaultHorizontalPodAutoscaler = `{{- if .Values.autoscaling.enabled }}
|
|
|
|
|
apiVersion: autoscaling/v2beta1
|
|
|
|
|
apiVersion: autoscaling/v2
|
|
|
|
|
kind: HorizontalPodAutoscaler
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "<CHARTNAME>.fullname" . }}
|
|
|
|
@ -387,13 +387,17 @@ 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 }}
|
|
|
|
|
`
|
|
|
|
|