Skip to content

Commit c6d73e8

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

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

charts/lfx-v2-mailing-list-service/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ apiVersion: v2
55
name: lfx-v2-mailing-list-service
66
description: LFX Platform V2 Mailing List Service chart
77
type: application
8-
version: 0.1.0
8+
version: 0.1.1
99
appVersion: "latest"

charts/lfx-v2-mailing-list-service/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
name: {{.Chart.Name}}
88
namespace: {{.Release.Namespace}}
99
spec:
10-
replicas: 1
10+
replicas: {{ .Values.replicaCount }}
1111
selector:
1212
matchLabels:
1313
app: {{.Chart.Name}}
@@ -39,6 +39,8 @@ spec:
3939
ports:
4040
- containerPort: {{.Values.service.port}}
4141
name: web
42+
resources:
43+
{{- toYaml .Values.resources | nindent 12 }}
4244
livenessProbe:
4345
httpGet:
4446
path: /livez

charts/lfx-v2-mailing-list-service/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ image:
1010
# pullPolicy is the image pull policy
1111
pullPolicy: IfNotPresent
1212

13+
# replicaCount is the number of replicas for the deployment
14+
replicaCount: 3
15+
16+
# resources is the configuration for resource requests and limits
17+
resources:
18+
limits:
19+
cpu: 500m
20+
memory: 512Mi
21+
requests:
22+
cpu: 100m
23+
memory: 128Mi
24+
1325
# traefik is the configuration for Traefik Gateway API routing
1426
traefik:
1527
# gateway specifies the platform Gateway to attach to

0 commit comments

Comments
 (0)