|
|
@ -1,5 +1,5 @@ |
|
|
{{- if .Values.autoscaling.enabled }} |
|
|
{{- if .Values.autoscaling.enabled }} |
|
|
apiVersion: autoscaling/v2beta1 |
|
|
apiVersion: autoscaling/v2 |
|
|
kind: HorizontalPodAutoscaler |
|
|
kind: HorizontalPodAutoscaler |
|
|
metadata: |
|
|
metadata: |
|
|
name: {{ include "caduser.fullname" . }} |
|
|
name: {{ include "caduser.fullname" . }} |
|
|
@ -17,12 +17,16 @@ spec: |
|
|
- type: Resource |
|
|
- type: Resource |
|
|
resource: |
|
|
resource: |
|
|
name: cpu |
|
|
name: cpu |
|
|
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} |
|
|
target: |
|
|
|
|
|
type: Utilization |
|
|
|
|
|
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} |
|
|
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} |
|
|
- type: Resource |
|
|
- type: Resource |
|
|
resource: |
|
|
resource: |
|
|
name: memory |
|
|
name: memory |
|
|
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} |
|
|
target: |
|
|
|
|
|
type: Utilization |
|
|
|
|
|
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|