Skip to content

Commit 457b678

Browse files
Akash Shindelholmquist
Akash Shinde
authored andcommitted
fix: Fix resource limit for db and app container (#119)
1 parent 02d3068 commit 457b678

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.openshiftio/application.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ objects:
152152
- containerPort: 8080
153153
name: http
154154
protocol: TCP
155+
resources:
156+
limits:
157+
cpu: 400m
158+
memory: 256Mi
155159
metadata:
156160
labels:
157161
app: nodejs-rest-http-crud
@@ -198,3 +202,4 @@ objects:
198202
stringData:
199203
user: luke
200204
password: secret
205+

.openshiftio/service.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ items:
6161
ports:
6262
- containerPort: 5432
6363
protocol: TCP
64-
resources: {}
64+
resources:
65+
limits:
66+
cpu: 400m
67+
memory: 256Mi
6568
volumeMounts:
6669
- mountPath: /var/lib/pgsql/data
6770
name: my-database-volume-1

0 commit comments

Comments
 (0)