Skip to content

Commit

Permalink
Merge pull request #23 from cbsiamlg/feature/AMLG-7126-add-hpa
Browse files Browse the repository at this point in the history
Feature/amlg 7126 add hpa
  • Loading branch information
beatgeek authored Feb 28, 2024
2 parents cc29dc6 + 745afc9 commit 1521fb1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion infrastructure/whisper/templates/whisper-hpa-autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "whisper-api.name" . }}-autoscaler
namespace: video-services
{{- include "whisper-api.labels" . | nindent 2}}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ template "whisper-api.name" . }}
minReplicas: {{ .Values.whisperHPA.autoscale.min }}
maxReplicas: {{ .Values.whisperHPA.autoscale.max }}
metrics:
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/whisper/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ whisperService:

whisperHPA:
autoscale:
minReplicas: 3
maxReplicas: 10
memoryUtilizationPercentage: 20
min: 3
max: 10
memoryUtilization: 25

ingress:
host: whisper.amlg.io
6 changes: 3 additions & 3 deletions infrastructure/whisper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ whisperService:

whisperHPA:
autoscale:
minReplicas: 3
maxReplicas: 5
memoryUtilizationPercentage: 25
min: 3
max: 5
memoryUtilization: 25

ingress:
host: devwhisper.amlg.io

0 comments on commit 1521fb1

Please sign in to comment.