Skip to content

Commit

Permalink
fix: Fix resource limit for db and app container (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash Shinde authored and lholmquist committed Jan 17, 2019
1 parent fc8a0c2 commit dd7c093
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .openshiftio/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ objects:
- containerPort: 8080
name: http
protocol: TCP
resources:
limits:
cpu: 400m
memory: 256Mi
metadata:
labels:
app: nodejs-rest-http-crud
Expand Down Expand Up @@ -198,3 +202,4 @@ objects:
stringData:
user: luke
password: secret

5 changes: 4 additions & 1 deletion .openshiftio/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ items:
ports:
- containerPort: 5432
protocol: TCP
resources: {}
resources:
limits:
cpu: 400m
memory: 256Mi
volumeMounts:
- mountPath: /var/lib/pgsql/data
name: my-database-volume-1
Expand Down

0 comments on commit dd7c093

Please sign in to comment.