Remove autoscaling using HPA

Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:05 +01:00
committed by Marco Franssen
parent e770a14629
commit 1e31a5e359
5 changed files with 0 additions and 44 deletions
-29
View File
@@ -1,29 +0,0 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "spire.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "spire.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "spire.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 }}
@@ -7,9 +7,7 @@ metadata:
labels:
{{- include "spire.oidc.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.oidc.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "spire.oidc.selectorLabels" . | nindent 6 }}
@@ -6,9 +6,7 @@ metadata:
labels:
{{- include "spire.server.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.server.replicaCount }}
{{- end }}
serviceName: {{ include "spire.fullname" . }}-server
selector:
matchLabels: