Skip to content

Commit

Permalink
disable hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
belskiiartem committed Sep 16, 2024
1 parent 58315e6 commit b414b09
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
40 changes: 0 additions & 40 deletions charts/wp-project-skeleton/templates/hpa.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions charts/wp-project-skeleton/templates/hpa.yaml_disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# {{- 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 }}

0 comments on commit b414b09

Please sign in to comment.