helm: remove hpa

pull/363/head
Roberto Santalla 2 years ago committed by Roberto Santalla
parent d86417a5dc
commit 4bb0d41681
No known key found for this signature in database
GPG Key ID: EECD0A1AE7884E7C

@ -5,9 +5,7 @@ metadata:
labels:
{{- include "web.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
replicas: 1
selector:
matchLabels:
{{- include "web.selectorLabels" . | nindent 6 }}

@ -1,28 +0,0 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "web.fullname" . }}
labels:
{{- include "web.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "web.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

@ -5,8 +5,6 @@
env:
SCRUTINY_WEB_INFLUXDB_HOST: scrutiny-influxdb2
replicaCount: 1
persistence:
config:
# Volume spec, without `name`.

Loading…
Cancel
Save