Skip to content

Commit

Permalink
Update hpa.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mgagliardo91 authored Aug 8, 2023
1 parent ee59795 commit 3a2a166
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ndustrial/deployment/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,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 }}
{{- if .Values.autoscaling.externalMetric.metricName }}
- type: External
Expand Down

0 comments on commit 3a2a166

Please sign in to comment.