From 91d65e056e1013ba0e109b23f2efbc62dcb6cd91 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Sat, 10 Feb 2024 20:55:43 -0500 Subject: [PATCH] removed hpas --- charts/core-api/templates/hpa.yaml | 32 ------------------------------ charts/ui/templates/hpa.yaml | 32 ------------------------------ 2 files changed, 64 deletions(-) delete mode 100644 charts/core-api/templates/hpa.yaml delete mode 100644 charts/ui/templates/hpa.yaml diff --git a/charts/core-api/templates/hpa.yaml b/charts/core-api/templates/hpa.yaml deleted file mode 100644 index 6c9ddbc..0000000 --- a/charts/core-api/templates/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "core-api.fullname" . }} - labels: - {{- include "core-api.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "core-api.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/charts/ui/templates/hpa.yaml b/charts/ui/templates/hpa.yaml deleted file mode 100644 index aa932aa..0000000 --- a/charts/ui/templates/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "ui.fullname" . }} - labels: - {{- include "ui.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "ui.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 }}