Browse Source

fix: remove redundant file

pull/122/head
Bruno Bernard 7 months ago
parent
commit
5398dd9608
  1. 2
      charts/textbee/Chart.yaml
  2. 32
      charts/textbee/templates/hpa.yaml

2
charts/textbee/Chart.yaml

@ -3,6 +3,6 @@ name: textbee
description: A Helm chart to deploy TextBee.
type: application
version: 0.1.6
version: 0.1.7
appVersion: "v2.6.2"

32
charts/textbee/templates/hpa.yaml

@ -1,32 +0,0 @@
{{- if .Values.api.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "textbee.fullname" . }}-api-hpa
labels:
{{- include "textbee.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "textbee.fullname" . }}-api
minReplicas: {{ .Values.api.autoscaling.minReplicas }}
maxReplicas: {{ .Values.api.autoscaling.maxReplicas }}
metrics:
{{- if .Values.api.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.api.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.api.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.api.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
Loading…
Cancel
Save