Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit a00999a

Browse files
committed
chore: add HorizontalPodAutoscalers to UIs and services
On-behalf-of: @SAP [email protected] Signed-off-by: Angel Kafazov <[email protected]>
1 parent c7e8115 commit a00999a

File tree

5 files changed

+59
-2
lines changed

5 files changed

+59
-2
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: {{ include "common.entity.name" . }}
5+
namespace: {{ .Release.Namespace }}
6+
spec:
7+
maxReplicas: 5
8+
metrics:
9+
- resource:
10+
name: cpu
11+
target:
12+
averageUtilization: 50
13+
type: Utilization
14+
type: Resource
15+
minReplicas: 1
16+
scaleTargetRef:
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
name: {{ include "common.entity.name" . }}

charts/kubernetes-graphql-gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
version: 0.20.15
2+
version: 0.20.16
33
appVersion: v0.80.2
44
name: kubernetes-graphql-gateway
55
description: Basic helm chart that contains listener and gateway
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: {{ include "common.entity.name" . }}
5+
namespace: {{ .Release.Namespace }}
6+
spec:
7+
maxReplicas: 5
8+
metrics:
9+
- resource:
10+
name: cpu
11+
target:
12+
averageUtilization: 50
13+
type: Utilization
14+
type: Resource
15+
minReplicas: 1
16+
scaleTargetRef:
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
name: {{ include "common.entity.name" . }}

charts/portal/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: Helm Chart for the openmfp Portal
33
name: portal
4-
version: 0.74.9
4+
version: 0.74.10
55
appVersion: "v0.377.192"
66
dependencies:
77
- name: common

charts/portal/templates/hpa.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: {{ include "common.entity.name" . }}
5+
namespace: {{ .Release.Namespace }}
6+
spec:
7+
maxReplicas: 5
8+
metrics:
9+
- resource:
10+
name: cpu
11+
target:
12+
averageUtilization: 50
13+
type: Utilization
14+
type: Resource
15+
minReplicas: 1
16+
scaleTargetRef:
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
name: {{ include "common.entity.name" . }}

0 commit comments

Comments
 (0)