From 61c4b28463645a9fcea4210b5ecc7b35ee8ea788 Mon Sep 17 00:00:00 2001 From: schulportal-client-gha Date: Wed, 20 Nov 2024 10:10:39 +0000 Subject: [PATCH] schulportal-client --- automation/schulportal-client/Chart.yaml | 4 +-- .../templates/deployment.yaml | 2 -- .../schulportal-client/templates/hpa.yaml | 26 ------------------- automation/schulportal-client/values.yaml | 6 ----- 4 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 automation/schulportal-client/templates/hpa.yaml diff --git a/automation/schulportal-client/Chart.yaml b/automation/schulportal-client/Chart.yaml index ee7a304cb..96fbbfa62 100644 --- a/automation/schulportal-client/Chart.yaml +++ b/automation/schulportal-client/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -appVersion: SPSH-1342 +appVersion: SPSH-941 description: Helm-Chart for schulportal-client name: schulportal-client type: application -version: 0.0.0-spsh-1342-20241120-1004 +version: 0.0.0-spsh-941-20241120-1010 diff --git a/automation/schulportal-client/templates/deployment.yaml b/automation/schulportal-client/templates/deployment.yaml index e6d0b0c80..fdd565a06 100644 --- a/automation/schulportal-client/templates/deployment.yaml +++ b/automation/schulportal-client/templates/deployment.yaml @@ -7,9 +7,7 @@ metadata: labels: {{- include "common.labels" . | nindent 4 }} spec: - {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} - {{- end }} selector: matchLabels: app.kubernetes.io/name: {{ template "common.names.name" . }} diff --git a/automation/schulportal-client/templates/hpa.yaml b/automation/schulportal-client/templates/hpa.yaml deleted file mode 100644 index 47d4bb9a3..000000000 --- a/automation/schulportal-client/templates/hpa.yaml +++ /dev/null @@ -1,26 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "common.names.name" . }} - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: {{ include "common.names.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "common.names.name" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} -{{- end }} \ No newline at end of file diff --git a/automation/schulportal-client/values.yaml b/automation/schulportal-client/values.yaml index 45ad51aca..e1188c9f2 100644 --- a/automation/schulportal-client/values.yaml +++ b/automation/schulportal-client/values.yaml @@ -49,9 +49,3 @@ service: enabled: true ports: http: 8080 - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 5 - targetCPUUtilizationPercentage: 60 \ No newline at end of file