Skip to content

Commit

Permalink
editoast: annotate hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
ElysaSrc committed Feb 24, 2025
1 parent 50da659 commit 33f4ca5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/editoast/autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "osrd.fullname" . }}-editoast-hpa
{{- with .Values.services.editoast.hpa.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.services.editoast.hpa.labels }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
maxReplicas: {{ .Values.services.editoast.hpa.maxReplicas }}
minReplicas: {{ .Values.services.editoast.hpa.minReplicas }}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ services:
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 80
annotations: {}
labels: {}
annotations: {}
init:
enabled: true
Expand Down

0 comments on commit 33f4ca5

Please sign in to comment.