Skip to content

Commit 4fb7fcf

Browse files
committed
add resource and replica support
Signed-off-by: Alan Sherman <[email protected]>
1 parent 1602644 commit 4fb7fcf

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

charts/lfx-v2-ui/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: v2
55
name: lfx-v2-ui
66
description: A Helm chart for LFX v2 UI - Angular SSR application with Express backend
77
type: application
8-
version: 0.3.2
8+
version: 0.3.3
99
appVersion: "latest"
1010
keywords:
1111
- lfx

charts/lfx-v2-ui/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ spec:
3939
- name: http
4040
containerPort: {{ .Values.service.targetPort }}
4141
protocol: TCP
42+
{{- with .Values.resources }}
43+
resources:
44+
{{- toYaml . | nindent 12 }}
45+
{{- end }}
4246
env:
4347
{{- range $name, $config := .Values.environment }}
4448
- name: {{ $name }}

charts/lfx-v2-ui/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright The Linux Foundation and each contributor to LFX.
22
# SPDX-License-Identifier: MIT
33

4-
replicaCount: 1
4+
replicaCount: 3
55

66
image:
77
repository: ghcr.io/linuxfoundation/lfx-v2-ui
@@ -147,6 +147,14 @@ ingress:
147147
pathType: Prefix
148148
tls: []
149149

150+
resources:
151+
limits:
152+
cpu: 1000m
153+
memory: 1024Mi
154+
requests:
155+
cpu: 500m
156+
memory: 512Mi
157+
150158
# Environment variables for the application
151159
# Uses map/object format for deep merging support
152160
environment:

0 commit comments

Comments
 (0)