From 000c6cf41996a50be4aa8cb887b501e11d0dd4e1 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 22 Oct 2025 14:31:15 -0500 Subject: [PATCH] remove autoscaler stuff --- helm-charts/stage/templates/deployment.yaml | 2 -- helm-charts/stage/templates/hpa.yaml | 32 --------------------- helm-charts/stage/values.yaml | 8 ------ 3 files changed, 42 deletions(-) delete mode 100644 helm-charts/stage/templates/hpa.yaml diff --git a/helm-charts/stage/templates/deployment.yaml b/helm-charts/stage/templates/deployment.yaml index 3ad64ca..cbe0dac 100644 --- a/helm-charts/stage/templates/deployment.yaml +++ b/helm-charts/stage/templates/deployment.yaml @@ -5,9 +5,7 @@ metadata: labels: {{- include "stage.labels" . | nindent 4 }} spec: - {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} - {{- end }} selector: matchLabels: {{- include "stage.selectorLabels" . | nindent 6 }} diff --git a/helm-charts/stage/templates/hpa.yaml b/helm-charts/stage/templates/hpa.yaml deleted file mode 100644 index a132513..0000000 --- a/helm-charts/stage/templates/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "stage.fullname" . }} - labels: - {{- include "stage.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "stage.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/helm-charts/stage/values.yaml b/helm-charts/stage/values.yaml index 8097c5d..93f5926 100644 --- a/helm-charts/stage/values.yaml +++ b/helm-charts/stage/values.yaml @@ -95,14 +95,6 @@ readinessProbe: path: / port: http -# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - # Additional volumes on the output Deployment definition. volumes: [] # - name: foo