Skip to content

Commit

Permalink
Merge pull request #65 from alercebroker/feat/change-scaling-version
Browse files Browse the repository at this point in the history
feat: ingestion HPA upgraded to v2
  • Loading branch information
dirodriguezm authored Mar 16, 2023
2 parents a63bd7b + f0e38f7 commit 6c00981
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/ingestion-step/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: "1.1.6"
description: A Helm chart for Kubernetes
description: Ingestion step chart
name: ingestion-step
type: application
version: 0.1.0
version: 0.2.0
20 changes: 14 additions & 6 deletions charts/ingestion-step/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{{- if .Values.autoscaling.atlas.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: '{{ include "ingestion-step.fullname" . }}-atlas'
Expand All @@ -19,13 +19,17 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.atlas.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.atlas.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.atlas.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.atlas.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.atlas.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
---
Expand All @@ -49,12 +53,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.ztf.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.ztf.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.ztf.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.ztf.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.ztf.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 6c00981

Please sign in to comment.