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

Commit 8168e08

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 1e6d159 commit 8168e08

File tree

6 files changed

+60
-3
lines changed

6 files changed

+60
-3
lines changed

charts/example-content/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "v0.158.13"
33
description: Helm Chart for the openmfp Portal
44
name: example-content
5-
version: 0.114.36
5+
version: 0.114.37
66
dependencies:
77
- name: common
88
version: 0.5.2
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,6 +1,6 @@
11
apiVersion: v2
22
version: 0.20.12
3-
appVersion: v0.78.0
3+
appVersion: v0.78.1
44
name: kubernetes-graphql-gateway
55
description: Basic helm chart that contains listener and gateway
66
dependencies:
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.1
4+
version: 0.74.2
55
appVersion: "v0.377.185"
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)