Skip to content
Snippets Groups Projects
Commit a2aed272 authored by david.bauer's avatar david.bauer :fire:
Browse files

Change: Update helm chart to autoscaling/v2

parent 73d3ec20
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,9 @@ metadata: ...@@ -5,7 +5,9 @@ metadata:
labels: labels:
{{- include "ox-common.labels.standard" . | nindent 4 }} {{- include "ox-common.labels.standard" . | nindent 4 }}
spec: spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
{{- end }}
selector: selector:
matchLabels: matchLabels:
{{- include "ox-common.labels.matchLabels" . | nindent 6 }} {{- include "ox-common.labels.matchLabels" . | nindent 6 }}
......
{{- if .Values.autoscaling.enabled }} {{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1 apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler kind: HorizontalPodAutoscaler
metadata: metadata:
name: {{ include "core-ui-middleware.fullname" . }} name: {{ include "core-ui-middleware.fullname" . }}
...@@ -17,12 +17,16 @@ spec: ...@@ -17,12 +17,16 @@ spec:
- type: Resource - type: Resource
resource: resource:
name: cpu name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }} {{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource - type: Resource
resource: resource:
name: memory name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }} {{- end }}
{{- end }} {{- end }}
...@@ -78,7 +78,7 @@ autoscaling: ...@@ -78,7 +78,7 @@ autoscaling:
minReplicas: 1 minReplicas: 1
maxReplicas: 100 maxReplicas: 100
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80 targetMemoryUtilizationPercentage: 80
nodeSelector: {} nodeSelector: {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment