diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-12-04 13:51:17 +0100 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2023-12-07 08:43:24 +0100 |
commit | 71c8b84a44c57daba13ec4e8a19989658e8abcbc (patch) | |
tree | 4a876379fb342a9f1650f5ffe531ff5370da1807 /kubernetes/portal-ng/components/portal-ng-bff/templates/hpa.yaml | |
parent | 2ad6c16c56c038178c8001a242e8c3243e21e9ba (diff) |
[PORTAL-NG] Publish ui and bff charts in OOM
- upload ui and bff
- preferences and history services will be added later
- added portal-ng to ONAP chart and overrides
Issue-ID: PORTALNG-66
Change-Id: I9182234be3afbdcdc95b23f0799a11d41384184e
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'kubernetes/portal-ng/components/portal-ng-bff/templates/hpa.yaml')
-rw-r--r-- | kubernetes/portal-ng/components/portal-ng-bff/templates/hpa.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kubernetes/portal-ng/components/portal-ng-bff/templates/hpa.yaml b/kubernetes/portal-ng/components/portal-ng-bff/templates/hpa.yaml new file mode 100644 index 0000000000..b686ac998b --- /dev/null +++ b/kubernetes/portal-ng/components/portal-ng-bff/templates/hpa.yaml @@ -0,0 +1,32 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "common.fullname" . }} + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ include "common.release" . }} + heritage: {{ .Release.Service }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "common.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} |