Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/example-content/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v0.158.15"
description: Helm Chart for the openmfp Portal
name: example-content
version: 0.114.39
version: 0.114.40
dependencies:
- name: common
version: 0.5.2
Expand Down
23 changes: 23 additions & 0 deletions charts/example-content/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if ((.Values).hpa).enabled | default false }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "common.entity.name" . }}
namespace: {{ .Release.Namespace }}
spec:
minReplicas: {{ .Values.hpa.minReplicas }}
maxReplicas: {{ .Values.hpa.maxReplicas }}
metrics:
{{- range .Values.hpa.metrics }}
- type: {{ .type }}
resource:
name: {{ .resource.name }}
target:
type: {{ .resource.target.type }}
averageUtilization: {{ .resource.target.averageUtilization }}
{{- end }}
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "common.entity.name" . }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/example-content/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ contentConfigurations:
# internalUrl: null

contentProtocolDomain: https://example-content.some-domain.com

# Horizontal Pod Autoscaler configuration
# hpa:
# enabled: true
# minReplicas: 1
# maxReplicas: 10
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# type: Utilization
# averageUtilization: 80
4 changes: 2 additions & 2 deletions charts/kubernetes-graphql-gateway/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
version: 0.20.35
appVersion: v0.83.6
version: 0.20.38
appVersion: v0.83.5
name: kubernetes-graphql-gateway
description: Basic helm chart that contains listener and gateway
dependencies:
Expand Down
23 changes: 23 additions & 0 deletions charts/kubernetes-graphql-gateway/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if ((.Values).hpa).enabled | default false }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "common.entity.name" . }}
namespace: {{ .Release.Namespace }}
spec:
minReplicas: {{ .Values.hpa.minReplicas }}
maxReplicas: {{ .Values.hpa.maxReplicas }}
metrics:
{{- range .Values.hpa.metrics }}
- type: {{ .type }}
resource:
name: {{ .resource.name }}
target:
type: {{ .resource.target.type }}
averageUtilization: {{ .resource.target.averageUtilization }}
{{- end }}
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "common.entity.name" . }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/kubernetes-graphql-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,16 @@ health:
path: "/readyz"
failureThreshold: 30
periodSeconds: 10

# Horizontal Pod Autoscaler configuration
# hpa:
# enabled: true
# minReplicas: 1
# maxReplicas: 10
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# type: Utilization
# averageUtilization: 80
2 changes: 1 addition & 1 deletion charts/portal/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Helm Chart for the openmfp Portal
name: portal
version: 0.74.11
version: 0.74.12
appVersion: "v0.377.193"
dependencies:
- name: common
Expand Down
23 changes: 23 additions & 0 deletions charts/portal/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if ((.Values).hpa).enabled | default false }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "common.entity.name" . }}
namespace: {{ .Release.Namespace }}
spec:
minReplicas: {{ .Values.hpa.minReplicas }}
maxReplicas: {{ .Values.hpa.maxReplicas }}
metrics:
{{- range .Values.hpa.metrics }}
- type: {{ .type }}
resource:
name: {{ .resource.name }}
target:
type: {{ .resource.target.type }}
averageUtilization: {{ .resource.target.averageUtilization }}
{{- end }}
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "common.entity.name" . }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,16 @@ health:
startup:
# -- path used for the startup probe
path: /rest/health

# Horizontal Pod Autoscaler configuration
# hpa:
# enabled: true
# minReplicas: 1
# maxReplicas: 10
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# type: Utilization
# averageUtilization: 80