From f9a01fe2b90a903930b617953173d5144e8ca1f3 Mon Sep 17 00:00:00 2001 From: Artem Bielskyi Date: Thu, 19 Sep 2024 18:24:36 +0300 Subject: [PATCH] fix: remove unused file --- .../templates/hpa.yaml_disabled | 40 ------------------- charts/wp-project-skeleton/values.yaml | 3 +- 2 files changed, 2 insertions(+), 41 deletions(-) delete mode 100644 charts/wp-project-skeleton/templates/hpa.yaml_disabled diff --git a/charts/wp-project-skeleton/templates/hpa.yaml_disabled b/charts/wp-project-skeleton/templates/hpa.yaml_disabled deleted file mode 100644 index 3436c5f..0000000 --- a/charts/wp-project-skeleton/templates/hpa.yaml_disabled +++ /dev/null @@ -1,40 +0,0 @@ -# {{- if .Values.autoscaling.enabled }} -# apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }} -# kind: HorizontalPodAutoscaler -# metadata: -# name: {{ include "common.names.fullname" . }} -# namespace: {{ .Release.Namespace | quote }} -# labels: {{- include "common.labels.standard" . | nindent 4 }} -# spec: -# scaleTargetRef: -# apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -# kind: Deployment -# name: {{ include "common.names.fullname" . }} -# minReplicas: {{ .Values.autoscaling.minReplicas }} -# maxReplicas: {{ .Values.autoscaling.maxReplicas }} -# metrics: -# {{- if .Values.autoscaling.targetMemory }} -# - type: Resource -# resource: -# name: memory -# {{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }} -# targetAverageUtilization: {{ .Values.autoscaling.targetMemory }} -# {{- else }} -# target: -# type: Utilization -# averageUtilization: {{ .Values.autoscaling.targetMemory }} -# {{- end }} -# {{- end }} -# {{- if .Values.autoscaling.targetCPU }} -# - type: Resource -# resource: -# name: cpu -# {{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }} -# targetAverageUtilization: {{ .Values.autoscaling.targetCPU }} -# {{- else }} -# target: -# type: Utilization -# averageUtilization: {{ .Values.autoscaling.targetCPU }} -# {{- end }} -# {{- end }} -# {{- end }} \ No newline at end of file diff --git a/charts/wp-project-skeleton/values.yaml b/charts/wp-project-skeleton/values.yaml index c90174c..ec66ef7 100644 --- a/charts/wp-project-skeleton/values.yaml +++ b/charts/wp-project-skeleton/values.yaml @@ -96,7 +96,8 @@ redis: replicaCount: 0 newrelic-php-agent: - replicaCount: 1 + autoscaling: + minReplicas: 1 resources: limits: cpu: 100m