This commit is contained in:
titver968
2025-03-04 16:01:10 +01:00
parent 9f77e6a4cd
commit 7857402f95
3 changed files with 15 additions and 28 deletions

View File

@@ -3,12 +3,12 @@ entries:
tatort:
- apiVersion: v2
appVersion: 0.0.1
created: "2025-03-04T15:53:00.345932+01:00"
created: "2025-03-04T16:00:54.062448+01:00"
description: A Helm chart for Kubernetes
digest: ad366d7aa35684c1cfd7021cc221f1daf21012919f6a77fe281bea9516a71e4a
digest: 826b2e548ec36923fb69d7332a361d8655b905be491ef2f07a6e867253a8828b
name: tatort
type: application
urls:
- https://gitea.innohub.local:3000/innohub/charts/raw/branch/main/tatort-0.1.0.tgz
version: 0.1.0
generated: "2025-03-04T15:53:00.345358+01:00"
generated: "2025-03-04T16:00:54.062041+01:00"

Binary file not shown.

View File

@@ -1,32 +1,19 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
{{- if .Values.autoscaling.enabled -}}
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "tatort.fullname" . }}
name: {{ template "tatort.fullname" . }}
labels:
{{- include "tatort.labels" . | nindent 4 }}
app: {{ template "tatort.name" . }}
chart: {{ template "tatort.chart" . }}
component: tatort
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "tatort.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 }}
name: {{ template "tatort.fullname" . }}
{{ toYaml .Values.autoscaling.config | indent 2 }}
{{- end -}}