Skip to content

Commit

Permalink
COMPANION: updated HPA
Browse files Browse the repository at this point in the history
  • Loading branch information
ganga2166 committed Oct 16, 2024
1 parent 3a983cc commit bf2ad14
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions charts/companion/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ spec:
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- end }}

{{- end }}

0 comments on commit bf2ad14

Please sign in to comment.