Skip to content

Commit

Permalink
preparing hpa for staging loadtest
Browse files Browse the repository at this point in the history
  • Loading branch information
M_Westerholz committed Nov 12, 2024
1 parent e2616dd commit ee9aa43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ metadata:
heritage: {{ .Release.Service }}

spec:
replicas: {{ if not .Values.autoscaling.enabled }}{{ .Values.replicaCount }}{{ end }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
app: {{ template "phpldapadmin.name" . }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
Expand All @@ -22,9 +23,4 @@ spec:
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
5 changes: 2 additions & 3 deletions charts/dbildungs-iam-ldap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ phpldapadmin:
# hosts:
# - phpldapadmin.example
autoscaling:
enabled: true
enabled: false
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 60
targetMemoryUtilizationPercentage: 60
targetCPUUtilizationPercentage: 60

0 comments on commit ee9aa43

Please sign in to comment.