hpa.yaml
This commit is contained in:
@@ -3,12 +3,12 @@ entries:
|
|||||||
tatort:
|
tatort:
|
||||||
- apiVersion: v2
|
- apiVersion: v2
|
||||||
appVersion: 0.0.1
|
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
|
description: A Helm chart for Kubernetes
|
||||||
digest: ad366d7aa35684c1cfd7021cc221f1daf21012919f6a77fe281bea9516a71e4a
|
digest: 826b2e548ec36923fb69d7332a361d8655b905be491ef2f07a6e867253a8828b
|
||||||
name: tatort
|
name: tatort
|
||||||
type: application
|
type: application
|
||||||
urls:
|
urls:
|
||||||
- https://gitea.innohub.local:3000/innohub/charts/raw/branch/main/tatort-0.1.0.tgz
|
- https://gitea.innohub.local:3000/innohub/charts/raw/branch/main/tatort-0.1.0.tgz
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
generated: "2025-03-04T15:53:00.345358+01:00"
|
generated: "2025-03-04T16:00:54.062041+01:00"
|
||||||
|
|||||||
BIN
tatort-0.1.0.tgz
BIN
tatort-0.1.0.tgz
Binary file not shown.
@@ -1,32 +1,19 @@
|
|||||||
{{- if .Values.autoscaling.enabled }}
|
{{- if .Values.autoscaling.enabled -}}
|
||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v1
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "tatort.fullname" . }}
|
name: {{ template "tatort.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "tatort.labels" . | nindent 4 }}
|
app: {{ template "tatort.name" . }}
|
||||||
|
chart: {{ template "tatort.chart" . }}
|
||||||
|
component: tatort
|
||||||
|
heritage: {{ .Release.Service }}
|
||||||
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: {{ include "tatort.fullname" . }}
|
name: {{ template "tatort.fullname" . }}
|
||||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
{{ toYaml .Values.autoscaling.config | indent 2 }}
|
||||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
{{- end -}}
|
||||||
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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user